From 8b58776e9c2ad8ee5f7fd553a4650ca921e69579 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 5 Feb 2023 13:10:48 +0900 Subject: feat(colmena/services): add 'rename' & enable symbolic-ref + move raw scripts to separate directory --- colmena/cobalt/services/gitolite-noncore/fix-refs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 colmena/cobalt/services/gitolite-noncore/fix-refs (limited to 'colmena/cobalt/services/gitolite-noncore/fix-refs') diff --git a/colmena/cobalt/services/gitolite-noncore/fix-refs b/colmena/cobalt/services/gitolite-noncore/fix-refs new file mode 100644 index 0000000..8ffec9e --- /dev/null +++ b/colmena/cobalt/services/gitolite-noncore/fix-refs @@ -0,0 +1,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 +} -- cgit 1.4.1