@@ 13,7 13,7 @@ inspect_main_repo()
repo="$1"
- hut git show "$repo" | head -n1 | cut -d' ' -f2 | tr -d '()'
+ hut git show "$repo" | head -n3 | tail -n+3 | cut -d' ' -f2 | tr -d '()'
}
ensure_repo_created_forgejo()
@@ 51,7 51,7 @@ ensure_repo_created_srht()
instance="$1"
repo_name=$(echo "$repo" | cut -d'/' -f2)
if ! hut --instance "$instance" git show "~ruther/$repo_name"; then
- visibility=$(inspect_main_repo "$repo")
+ visibility=$(inspect_main_repo "~ruther/$repo")
hut --instance "$instance" git create "$repo_name" --visibility "$visibility" --description "Mirror of https://git.ditigal.xyz/$repo"
else
echo "Repo already exists."
@@ 83,4 83,4 @@ for remote in "${remotes[@]}"; do
git remote set-url --add --push origin "$remote"
done
-git remote show origin>
\ No newline at end of file
+git remote show origin