diff options
-rwxr-xr-x | gitolite/dotfiles/local/triggers/push | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitolite/dotfiles/local/triggers/push b/gitolite/dotfiles/local/triggers/push index 2c5e060..4a23583 100755 --- a/gitolite/dotfiles/local/triggers/push +++ b/gitolite/dotfiles/local/triggers/push @@ -6,7 +6,7 @@ cd "$GL_REPO_BASE/$2.git" head=$(git symbolic-ref HEAD) if ! [ -f "$head" ]; then - set -- refs/heads/* + set -- $(find refs/heads -type f) if [ $# -eq 1 ] && git symbolic-ref HEAD "$1" >/dev/null 2>&1; then echo "NOTICE: Default branch set to $1" >&2 else |