support du mode offline avec la variable UTOOLS_VCS_OFFLINE

This commit is contained in:
Jephté Clain 2015-03-09 16:05:56 +04:00
parent 8857fa6c10
commit 49ff5cb4b4
1 changed files with 3 additions and 1 deletions

View File

@ -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
}