Skip to content

Commit

Permalink
make git fetch silent
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Jan 26, 2010
1 parent e2fa491 commit 4d22227
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions git-flow-feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cmd_start() {
gitflow_check_clean_working_tree
gitflow_require_branch_absent $BRANCH
if [ "$BASE" = "$DEVELOP_BRANCH" ]; then
git fetch $ORIGIN $DEVELOP_BRANCH
git fetch -q $ORIGIN $DEVELOP_BRANCH
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
fi

Expand All @@ -80,7 +80,7 @@ cmd_finish() {
# sanity checks
gitflow_check_clean_working_tree
gitflow_require_branch $BRANCH
git fetch $ORIGIN
git fetch -q $ORIGIN
if has $ORIGIN/$BRANCH $REMOTE_BRANCHES; then
gitflow_require_branches_equal $BRANCH $ORIGIN/$BRANCH
fi
Expand Down Expand Up @@ -116,12 +116,12 @@ cmd_publish() {
# sanity checks
gitflow_check_clean_working_tree
gitflow_require_branch $BRANCH
git fetch $ORIGIN
git fetch -q $ORIGIN
gitflow_require_branch_absent $ORIGIN/$BRANCH

# create remote branch
git push $ORIGIN $BRANCH:refs/heads/$BRANCH
git fetch $ORIGIN
git fetch -q $ORIGIN

# configure remote tracking
git config branch.$BRANCH.remote $ORIGIN
Expand All @@ -142,7 +142,7 @@ cmd_track() {
# sanity checks
gitflow_check_clean_working_tree
gitflow_require_branch_absent $BRANCH
git fetch $ORIGIN
git fetch -q $ORIGIN
gitflow_require_branch $ORIGIN/$BRANCH

# create tracking branch
Expand Down
6 changes: 3 additions & 3 deletions git-flow-hotfix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cmd_start() {

# sanity checks
gitflow_check_clean_working_tree
git fetch $ORIGIN
git fetch -q $ORIGIN
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branch_absent $BRANCH

Expand All @@ -75,8 +75,8 @@ cmd_finish() {

# sanity checks
gitflow_check_clean_working_tree
git fetch $ORIGIN $MASTER_BRANCH
git fetch $ORIGIN $DEVELOP_BRANCH
git fetch -q $ORIGIN $MASTER_BRANCH
git fetch -q $ORIGIN $DEVELOP_BRANCH
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH

Expand Down
4 changes: 2 additions & 2 deletions git-flow-release
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cmd_start() {

# sanity checks
gitflow_check_clean_working_tree
git fetch $ORIGIN
git fetch -q $ORIGIN
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
gitflow_require_branch_absent $BRANCH

Expand All @@ -75,7 +75,7 @@ cmd_finish() {

# sanity checks
gitflow_check_clean_working_tree
git fetch $ORIGIN
git fetch -q $ORIGIN
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH

Expand Down
2 changes: 1 addition & 1 deletion git-flow-support
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cmd_start() {

# publish branch
git push $ORIGIN $BRANCH:refs/heads/$BRANCH
git fetch $ORIGIN
git fetch -q $ORIGIN
git config branch.$BRANCH.remote $ORIGIN
git config branch.$BRANCH.merge refs/heads/$BRANCH
git co $BRANCH
Expand Down

0 comments on commit 4d22227

Please sign in to comment.