Fix release.
authorCarl Hetherington <cth@carlh.net>
Tue, 18 Jul 2017 21:19:14 +0000 (22:19 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 18 Jul 2017 21:19:14 +0000 (22:19 +0100)
cdist

diff --git a/cdist b/cdist
index 1173c8e7c88bf6133699ac5c8642563232896f8e..39e6a928b09e38d049ce267b3ac5c8a0a8593be8 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -859,18 +859,19 @@ def main():
         else:
             version.bump_micro()
 
-        set_version_in_wscript(version)
-        append_version_to_changelog(version)
-        append_version_to_debian_changelog(version)
-
-        command('git commit -a -m "Bump version"')
-        command('git tag -m "v%s" v%s' % (version, version))
-
-        version.to_devel()
-        set_version_in_wscript(version)
-        command('git commit -a -m "Bump version"')
-        command('git push')
-        command('git push --tags')
+        with TreeDirectory(tree):
+            set_version_in_wscript(version)
+            append_version_to_changelog(version)
+            append_version_to_debian_changelog(version)
+
+            command('git commit -a -m "Bump version"')
+            command('git tag -m "v%s" v%s' % (version, version))
+
+            version.to_devel()
+            set_version_in_wscript(version)
+            command('git commit -a -m "Bump version"')
+            command('git push')
+            command('git push --tags')
 
         target.cleanup()