about summary refs log tree commit diff
path: root/colmena/cobalt/services/gitolite-noncore/rename
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-05 13:34:34 +0900
committersefidel <contact@sefidel.net>2023-02-05 13:38:18 +0900
commitbdf36408a71b1b3993a9552637d86495cb677b86 (patch)
treeb33f807e151dcebe65d9e8832469323f4d112fdd /colmena/cobalt/services/gitolite-noncore/rename
parent8b58776e9c2ad8ee5f7fd553a4650ca921e69579 (diff)
downloadnixrc-bdf36408a71b1b3993a9552637d86495cb677b86.tar.gz
nixrc-bdf36408a71b1b3993a9552637d86495cb677b86.zip
feat(colmena/services): gitolite: also edit projects.list
Diffstat (limited to 'colmena/cobalt/services/gitolite-noncore/rename')
-rw-r--r--colmena/cobalt/services/gitolite-noncore/rename2
1 files changed, 2 insertions, 0 deletions
diff --git a/colmena/cobalt/services/gitolite-noncore/rename b/colmena/cobalt/services/gitolite-noncore/rename
index 091de82..00aa5ca 100644
--- a/colmena/cobalt/services/gitolite-noncore/rename
+++ b/colmena/cobalt/services/gitolite-noncore/rename
@@ -55,6 +55,8 @@ mv $GL_REPO_BASE/$from.git $topath
 
 $takeover && echo $GL_USER > $topath/gl-creator
 
+[ -f "$HOME/projects.list" ] && sed "s:$from.git$:$to.git:g" -i "$HOME/projects.list"
+
 echo "$from renamed to $to" >&2
 
 exit