mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
get.sh: re-generate remotes every time
that way, when a remote changes in config/, it will be updated automatically, without user intervention. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+4
-2
@@ -143,8 +143,10 @@ try_git()
|
||||
[ -d "$gitdest" ] || x_ mkdir -p "${gitdest%/*}"
|
||||
[ -d "$gitdest" ] || x_ mv "$tmpgitcache" "$gitdest"
|
||||
|
||||
( x_ git -C "$gitdest" remote add main "$4" 2>/dev/null ) || :
|
||||
( x_ git -C "$gitdest" remote add backup "$5" 2>/dev/null ) || :
|
||||
( x_ git -C "$gitdest" remote remove main ) || :
|
||||
( x_ git -C "$gitdest" remote remove backup ) || :
|
||||
x_ git -C "$gitdest" remote add main "$4"
|
||||
x_ git -C "$gitdest" remote add backup "$5"
|
||||
( x_ git -C "$gitdest" fetch --all ) || :
|
||||
( x_ git -C "$gitdest" pull --all ) || :; :
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user