support du mode offline avec la variable UTOOLS_VCS_OFFLINE
This commit is contained in:
parent
8857fa6c10
commit
49ff5cb4b4
|
@ -581,8 +581,10 @@ function git_ensure_branch() {
|
||||||
# créer une nouvelle branche du nom spécifié
|
# créer une nouvelle branche du nom spécifié
|
||||||
git_have_branch "$source" || return 2
|
git_have_branch "$source" || return 2
|
||||||
git branch "$branch" "$source" || return 2
|
git branch "$branch" "$source" || return 2
|
||||||
|
if [ -z "$UTOOLS_VCS_OFFLINE" ]; then
|
||||||
git_have_remote "$origin" && git_track_branch "$branch" "$origin"
|
git_have_remote "$origin" && git_track_branch "$branch" "$origin"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
function git_check_cleancheckout() {
|
function git_check_cleancheckout() {
|
||||||
|
|
Loading…
Reference in New Issue