mirror of
https://github.com/wahyd4/gitolite.git
synced 2026-08-09 13:05:53 +10:00
(ls-tree has --name-only now!)
thanks to Teukka for pointing it out
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user