Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2011-09-24 01:55:38 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2011-09-24 01:55:38 (GMT)
commit07f63c3a047d4b73628e1bc5d76e6ebd7099f313 (patch)
tree022c65aae0c2f9e0ab25537e8dcddfcf837ffc04
parentd2f386d503e6be861721841f0b27408cd848227b (diff)
While trying to push, use proper branch
-rw-r--r--misc/check_pendings_commits.py6
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: