Make lb-use overwrite the current remote if necessary
Compare changes
+ 13
− 1
@@ -14,9 +14,21 @@ fi
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
Two questions:
$? -ne 0
?I thought that the
128
return code was specific to this error. Will check up on that. (Catching the exact error would have the benefit of forwarding the other ones). Grepping for the name is probably better as well.