Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/108719


Change subject: gerrit-sync-ve: register Gerrit hook before commit
......................................................................

gerrit-sync-ve: register Gerrit hook before commit

Gerrit requires a Change-Id in the commit message, so move the hooks
installation snippet up before the git commit operation.

Change-Id: Ia335a321e9221d2de9b65e1bd362f6d78e470312
---
M bin/gerrit-sync-ve.sh
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/jenkins 
refs/changes/19/108719/1

diff --git a/bin/gerrit-sync-ve.sh b/bin/gerrit-sync-ve.sh
index f816762..f931c49 100755
--- a/bin/gerrit-sync-ve.sh
+++ b/bin/gerrit-sync-ve.sh
@@ -59,14 +59,15 @@
 
 # Add change to Gerrit
 echo
-pwd
-git add VisualEditor
-git commit -a -m "Syncronize VisualEditor: 
${VE_OLD_SHORT}..${ZUUL_COMMIT_SHORT}"
-git show
 
 # Install commit hook if needed
 if [ ! -e ".git/hooks/commit-msg" ]; then
        curl 'https://gerrit.wikimedia.org/r/tools/hooks/commit-msg' > `git 
rev-parse --git-dir`/hooks/commit-msg
 fi
 
+pwd
+git add VisualEditor
+git commit -a -m "Syncronize VisualEditor: 
${VE_OLD_SHORT}..${ZUUL_COMMIT_SHORT}"
+git show
+
 echo "Done updating locally. Commit should now be pushed. Use 
gerrit-sync-ve-push.sh."

-- 
To view, visit https://gerrit.wikimedia.org/r/108719
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia335a321e9221d2de9b65e1bd362f6d78e470312
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to