Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=git-hooks.git;a=commitdiff;h=18b6cadb9caa52af60c2184c366282dc362a0810
commit 18b6cadb9caa52af60c2184c366282dc362a0810
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Mon Mar 24 14:39:18 2008 +0100
quiet things a bit up
diff --git a/checkout/checkout.py b/checkout/checkout.py
index c361310..5550d5c 100644
--- a/checkout/checkout.py
+++ b/checkout/checkout.py
@@ -24,7 +24,7 @@ def callback(patch):
ret = os.system("git symbolic-ref HEAD &>/dev/null")
if ret != 0:
# this is a detached head
- os.system("git checkout -m master")
+ os.system("git checkout -m master 2>/dev/null")
else:
# we don't know where we are, need to
# check every checked out file
diff --git a/detach/detach.py b/detach/detach.py
index f4fbc98..aafd53a 100644
--- a/detach/detach.py
+++ b/detach/detach.py
@@ -24,6 +24,6 @@ def callback(patch):
sock = os.popen("git-show-ref -h -s HEAD")
hash = sock.readline().strip()
sock.close()
- os.system("git checkout -m %s" % hash)
+ os.system("git checkout -m %s 2>/dev/null" % hash)
return
print "WARNING: Timeout exceeded, checkout failed!"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git