diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2011-09-24 01:55:38 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2011-09-24 01:55:38 (GMT) |
commit | 07f63c3a047d4b73628e1bc5d76e6ebd7099f313 (patch) | |
tree | 022c65aae0c2f9e0ab25537e8dcddfcf837ffc04 /misc | |
parent | d2f386d503e6be861721841f0b27408cd848227b (diff) |
While trying to push, use proper branch
Diffstat (limited to 'misc')
-rw-r--r-- | misc/check_pendings_commits.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/check_pendings_commits.py b/misc/check_pendings_commits.py index 84ff0b7..dbe881d 100644 --- a/misc/check_pendings_commits.py +++ b/misc/check_pendings_commits.py @@ -73,8 +73,10 @@ for project in projects: # check push status attrs = {} - git = subprocess.Popen(['git', 'push', '-n'], - stderr=subprocess.PIPE, stdout=subprocess.PIPE, cwd=module_dir) + git = subprocess.Popen('git push -n origin ' \ + "$(git branch --no-color | grep ^* | awk '{print $2}')", + stderr=subprocess.PIPE, stdout=subprocess.PIPE, + cwd=module_dir, shell=True) attrs['output'] = git.communicate()[1] \ .replace("'", "\\'").replace('\n', '\\n') if git.returncode == 0: |