From: Zhang Qiang Date: Sat, 30 Jun 2012 12:39:43 +0000 (+0800) Subject: show the correct error info if no git repo found X-Git-Tag: 0.8~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=755f898f6159cc6e9ba569bfa58d881cbb2c7b72;p=tools%2Fgbs.git show the correct error info if no git repo found --- diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index a382ee6..756fcf5 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -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