From 813a2a990835a9422d87541cdfd1090332817722 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Mon, 12 Apr 2010 23:46:29 +0530 Subject: [PATCH] (ls-tree has --name-only now!) thanks to Teukka for pointing it out --- hooks/gitolite-admin/post-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/gitolite-admin/post-update b/hooks/gitolite-admin/post-update index 3707c9f..8fcb182 100755 --- a/hooks/gitolite-admin/post-update +++ b/hooks/gitolite-admin/post-update @@ -3,7 +3,7 @@ # checkout the master branch to $GL_ADMINDIR # (the GL_ADMINDIR env var would have been set by gl-auth-command) GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master -- \ - `git ls-tree master | cut -f2 | perl -lne 'print unless /^(src|hooks)$/'` + `git ls-tree --name-only master | perl -lne 'print unless /^(src|hooks)$/'` od=$PWD cd $GL_ADMINDIR