Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/misc/check_pendings_commits.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/check_pendings_commits.py')
-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: