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