show the correct error info if no git repo found
authorZhang Qiang <qiang.z.zhang@intel.com>
Sat, 30 Jun 2012 12:39:43 +0000 (20:39 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 2 Jul 2012 01:47:37 +0000 (09:47 +0800)
gitbuildsys/cmd_build.py

index a382ee6..756fcf5 100644 (file)
@@ -237,7 +237,7 @@ def do(opts, args):
     try:
         repo = RpmGitRepository(workdir)
     except GitRepositoryError:
-        msger.error("%s is not a git repository" % (os.path.curdir))
+        msger.error("%s is not a git repository" % (workdir))
 
     workdir = repo.path