]> git.alsa-project.org Git - alsa.git/commitdiff
alsatool kmerge: push back results to origin
authorroot <root@alsa0.alsa-project.org>
Mon, 18 Jan 2010 16:41:58 +0000 (17:41 +0100)
committerroot <root@alsa0.alsa-project.org>
Mon, 18 Jan 2010 16:41:58 +0000 (17:41 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsatool

index f8549bfe8afd96f4265d3f35966be197c48cb9fd..9cdc074f6e921f6fa82c17773c327fa43ab77ead 100755 (executable)
--- a/alsatool
+++ b/alsatool
@@ -1033,6 +1033,7 @@ def kmerge(argv=''):
     os.chdir(config.ROOT + '/alsa-kernel')
     git0 = 'git '
     checkout = False
+    changes = 0
     for url, branch, lbranch, web in config.GIT_MERGE_REPOS:
         lbranch = 'alsamerge/' + lbranch
         ref = getgitfile(web, 'refs/heads/' + branch)
@@ -1056,6 +1057,12 @@ def kmerge(argv=''):
             raise ValueError, ' pull ' + url + ' ' + branch
         if os.system(git0 + ' branch -f ' + lbranch + ' ' + ref):
             raise ValueError, ' branch ' + lbranch + ' ' + ref
+        if os.system(git0 + ' push -f origin ' + lbranch):
+            raise ValueError, ' push -f origin ' + lbranch
+        changes += 1
+    if changes > 0:
+        if os.system(git0 + ' push -f origin alsamerge/master'):
+            raise ValueError, ' push -f origin alsamerge/master'
 
 def background(argv=''):
     global BACKGROUND