From: Jaroslav Kysela Date: Thu, 5 Mar 2009 09:41:32 +0000 (+0100) Subject: pre-receive: fix previous commit X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9368a96aeb9e86904fcf6eec94ed9a80aa05dafb;p=alsa.git pre-receive: fix previous commit --- diff --git a/hooks/alsa-kernel.git/pre-receive b/hooks/alsa-kernel.git/pre-receive index 129b24d..e6aecc7 100755 --- a/hooks/alsa-kernel.git/pre-receive +++ b/hooks/alsa-kernel.git/pre-receive @@ -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)):