]> git.alsa-project.org Git - alsa.git/commitdiff
pre-receive: fix previous commit
authorJaroslav Kysela <perex@perex.cz>
Thu, 5 Mar 2009 09:41:32 +0000 (10:41 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 5 Mar 2009 09:41:32 +0000 (10:41 +0100)
hooks/alsa-kernel.git/pre-receive

index 129b24d2842ca79859fa2c332aa2f46e43f89333..e6aecc7a3cd03f74a3d52916b2cf844805c58f6a 100755 (executable)
@@ -63,7 +63,7 @@ def error(lines, msg, *args):
 def fail(): 
     if ALSA_LAST_COMMIT:
         stderr.write('PRE-RECEIVE: Reverting alsa-kmirror.git repo to original state\n')
-        stderr.write('PRE-RECEIVE: alsa-kmirror.git problematic HEAD: %s\n' % os.popen('git --git-dir=%s rev-parse HEAD' % KMIRROR_REPO).read())
+        stderr.write('PRE-RECEIVE: alsa-kmirror.git problematic HEAD: %s\n' % popen('git --git-dir=%s rev-parse HEAD' % KMIRROR_REPO).read())
         if system('git --git-dir=%s update-ref HEAD "refs/heads/master"' % KMIRROR_REPO):
             raise ValueError, "update-ref failed"
         if system('git --git-dir=%s reset -q --mixed %s > /dev/null' % (KMIRROR_REPO, ALSA_LAST_COMMIT)):