Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=6c806ec1bae73ab80121306f1409bfefd5c1de5d
commit 6c806ec1bae73ab80121306f1409bfefd5c1de5d Author: Miklos Vajna <[email protected]> Date: Mon Nov 25 08:22:36 2013 +0100 dg tag: undo tag commit if git tag fails diff --git a/darcs-git.py b/darcs-git.py index 878b5a5..e98daba 100755 --- a/darcs-git.py +++ b/darcs-git.py @@ -851,6 +851,8 @@ Options: else: msg = argv[0] ret += os.system("git tag -a -m '%s' '%s'" % (msg, argv[-1])) + if ret: + os.system("git reset --hard HEAD^") return ret def rollback(argv): _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
