From dc31a56f60a811e9ed46426805d4d7fe78fca414 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 8 Jul 2007 20:03:39 +0200 Subject: [PATCH] Pull from git before building the snapshot --- maint-helper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maint-helper.py b/maint-helper.py index a4454fee..09fa9c62 100755 --- a/maint-helper.py +++ b/maint-helper.py @@ -50,6 +50,12 @@ maint-helper.py check-licenses - check licenses in the source' def cmd_build_snapshot(): [ name, version ] = get_name_and_version() + print 'Update git...' + + retcode = subprocess.call(['git', 'pull']) + if retcode: + print 'ERROR - cannot pull from git' + cmd = 'git-show-ref --hash=10 refs/heads/master' alphatag = os.popen(cmd).readline().strip()