about summary refs log tree commit diff
path: root/modules/services/gitolite/fix-refs
blob: 8ffec9e9ec2beb56089b767657f9b55006c0cad4 (plain)
1
2
3
4
5
6
7
8
9
[[ $4 == W ]] || exit 0

cd $GL_REPO_BASE/$2.git

head=`git symbolic-ref HEAD`
[[ -f $head ]] || {
  set -- refs/heads/*
  git symbolic-ref HEAD $1
}