From 62af3b51357f13584f1c8901c088280599c9ba81 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Fri, 22 Dec 2006 17:51:33 +0100 Subject: git-import-orig: improve error message when the upstream branch cannot be found. We cannot create the branch automatically since on repositories not created by git-import-dsc it's not clear where to branch from. (Closes: #403990) While doing that also remove pointless patch arguments from most of the git helper functions Minor doc updates --- git-buildpackage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-buildpackage') diff --git a/git-buildpackage b/git-buildpackage index 95d7216d..a0744a3e 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -85,13 +85,13 @@ def main(argv): try: if not options.ignore_new: Command(options.clean_cmd)() - (ret, out) = is_repository_clean('.') + (ret, out) = is_repository_clean() if not ret: print >>sys.stderr, "You have uncommitted changes in your source tree:" print >>sys.stderr, out print >>sys.stderr, "Use --git-ignore-new to ignore." return 1 - branch=get_repository_branch('.') + branch=get_repository_branch() if branch != options.debian_branch and not options.ignore_new: print >>sys.stderr, "You are not on branch '%s' but on '%s'" % (options.debian_branch, branch) print >>sys.stderr, "Use --git-ignore-new to ignore or --git-debian-branch to set the branch name." -- cgit v1.2.3