~ruther/guix-config

fb7bbb11f5c8a7b61000bf8ef56eecf94712e2b9 — Rutherther 7 months ago d618c12
fix: update hut expected line with visibility
1 files changed, 3 insertions(+), 3 deletions(-)

M home/dotfiles/scripts/setup_mirrored_repo -rw-r--r-- => -rwxr-xr-x
M home/dotfiles/scripts/setup_mirrored_repo => home/dotfiles/scripts/setup_mirrored_repo +3 -3
@@ 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