Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=c92508df10d8b2eac8554a19e1c9edf44716708f

commit c92508df10d8b2eac8554a19e1c9edf44716708f
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Mon Jun 16 00:57:37 2008 +0200

dg push: remove "Everything up-to-date" after an avarage push

that message is there because there are no tags to push, but it's just
spam. now we do a --dry-run, and we don't print anything if nothing to
do

diff --git a/darcs-git.py b/darcs-git.py
index e7e120c..09a2206 100755
--- a/darcs-git.py
+++ b/darcs-git.py
@@ -630,7 +630,11 @@ Options:
ret = os.system("git push %s" % options.gitopts)
if ret:
return(1)
-               os.system("git push --tags %s" % options.gitopts)
+               sock = os.popen("git push --tags --dry-run 2>&1")
+               buf = sock.read()
+               sock.close()
+               if buf.strip() != "Everything up-to-date":
+                       os.system("git push --tags %s" % options.gitopts)
else:
os.system("git svn dcommit")
return(0)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to