Make lb-use overwrite the current remote if necessary
This allows you to override the current remote using lb-use
, instead of having to do git remote rm
Users will end up doing this if there is a problem when running lb-use
, for example when they don't have access to the repo, or they abort the git fetch
Merge request reports
Activity
Added 1 commit:
- 63937c8a - Add missing set -e
14 14 if [ -z "$url" ] ; then 15 15 url=https://:@gitlab.cern.ch:8443/LHCb-SVN-mirrors/$name.git 16 16 fi 17 17 18 echo "calling: git remote add -f '$name' '$url'" 19 20 # define a remote "$name", overwrite it if it already exists 21 output=$(git remote add "$name" "$url" 2>&1) 22 if [ $? -eq 128 ]; then Reassigned to @clemenci
Milestone changed to v8r6
mentioned in merge request !56 (merged)
mentioned in commit 7355a029
mentioned in commit 630e4de3
Please register or sign in to reply