diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-07 04:40:22 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-07 04:40:22 +0400 |
commit | ed37b5b2b94398f3ab8312dfdf23cfd25549e3ec (patch) | |
tree | 8ba05dbc5815b0bc731a93d8353d36ba633d14c4 /git-pull-script | |
parent | 3f4eff75308b86fe462a2333108470bd6556e3c4 (diff) |
Make fetch/pull scripts terminate cleanly on errors
Don't continue with a merge if the fetch failed.
Diffstat (limited to 'git-pull-script')
-rwxr-xr-x | git-pull-script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-pull-script b/git-pull-script index 49f42b5ab2..a4ca97c645 100755 --- a/git-pull-script +++ b/git-pull-script @@ -15,7 +15,7 @@ fi : ${GIT_DIR=.git} : ${GIT_OBJECT_DIRECTORY="${SHA1_FILE_DIRECTORY-"$GIT_DIR/objects"}"} -git-fetch-script "$merge_repo" "$merge_head" +git-fetch-script "$merge_repo" "$merge_head" || exit 1 git-resolve-script \ "$(cat "$GIT_DIR"/HEAD)" \ |