]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: more logging when reset repository after build
authorMathias Klette <mathias.klette@profitbricks.com>
Mon, 17 Jun 2013 09:24:14 +0000 (11:24 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Mon, 17 Jun 2013 09:24:14 +0000 (11:24 +0200)
debian_build.py

index 424f911ee931316eff4980e226314203d41cea43..e99f94b9a6adec0426cf1c045d230d9c4a57c338 100755 (executable)
@@ -462,7 +462,8 @@ if __name__ == '__main__':
     # .. remove last commit (the one where we added the changelog entry)
     # FIXME: when 'merge': reset only on original branch?
     #                      change checkout back to original branch?
-    gitrepo.git.reset('--soft', 'HEAD~1')
+    logger.info('Reset repository to HEAD~1 to revert develop changelog entry.')
+    logger.debug(gitrepo.git.reset('--soft', 'HEAD~1'))
 
     # .. now handle the result
     if ret: