From f9658c7a77b9f91317a6b4885ae74a75df8a6190 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 26 Apr 2009 18:54:31 +0100 Subject: [PATCH] Use full path when checking that feed is under version control --- release.py | 2 +- scm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/release.py b/release.py index 975f145..b2fde99 100644 --- a/release.py +++ b/release.py @@ -115,7 +115,7 @@ def do_release(local_iface, options): raise SafeException("Master feed file not set! Check your configuration") scm.ensure_committed() - scm.ensure_versioned(local_iface_rel_path) + scm.ensure_versioned(os.path.abspath(local_iface.uri)) info("No uncommitted changes. Good.") # Not needed for GIT. For SCMs where tagging is expensive (e.g. svn) this might be useful. #run_unit_tests(local_impl) diff --git a/scm.py b/scm.py index 06929ea..06389a1 100644 --- a/scm.py +++ b/scm.py @@ -14,7 +14,7 @@ class SCM: class GIT(SCM): def _run(self, args, **kwargs): - info("Running git %s", ' '.join(args)) + info("Running git %s (in %s)", ' '.join(args), self.root_dir) return subprocess.Popen(["git"] + args, cwd = self.root_dir, **kwargs) def _run_check(self, args, **kwargs): -- 2.11.4.GIT