prelude: consistently use "src" as remote name
This commit is contained in:
parent
eadedf334c
commit
5b4567d75d
@ -17,12 +17,12 @@ clone_or_update() {(
|
|||||||
git init -q
|
git init -q
|
||||||
|
|
||||||
if ! current_url=$(git config remote.src.url); then
|
if ! current_url=$(git config remote.src.url); then
|
||||||
git remote add "src" "$git_url"
|
git remote add src "$git_url"
|
||||||
elif [ $current_url != $git_url ]; then
|
elif [ $current_url != $git_url ]; then
|
||||||
git remote set-url src ${git_url}
|
git remote set-url src "$git_url"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git fetch config
|
git fetch src
|
||||||
|
|
||||||
git checkout "$git_rev"
|
git checkout "$git_rev"
|
||||||
' | ssh "$target" env nixpkgs_dir="$nixpkgs_dir" git_url="$git_url" git_rev="$git_rev" /bin/sh
|
' | ssh "$target" env nixpkgs_dir="$nixpkgs_dir" git_url="$git_url" git_rev="$git_rev" /bin/sh
|
||||||
|
Loading…
Reference in New Issue
Block a user