Commit 4d22227a authored by Benedikt Böhm's avatar Benedikt Böhm

make git fetch silent

parent e2fa4913
...@@ -56,7 +56,7 @@ cmd_start() { ...@@ -56,7 +56,7 @@ cmd_start() {
gitflow_check_clean_working_tree gitflow_check_clean_working_tree
gitflow_require_branch_absent $BRANCH gitflow_require_branch_absent $BRANCH
if [ "$BASE" = "$DEVELOP_BRANCH" ]; then 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 gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
fi fi
...@@ -80,7 +80,7 @@ cmd_finish() { ...@@ -80,7 +80,7 @@ cmd_finish() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree gitflow_check_clean_working_tree
gitflow_require_branch $BRANCH gitflow_require_branch $BRANCH
git fetch $ORIGIN git fetch -q $ORIGIN
if has $ORIGIN/$BRANCH $REMOTE_BRANCHES; then if has $ORIGIN/$BRANCH $REMOTE_BRANCHES; then
gitflow_require_branches_equal $BRANCH $ORIGIN/$BRANCH gitflow_require_branches_equal $BRANCH $ORIGIN/$BRANCH
fi fi
...@@ -116,12 +116,12 @@ cmd_publish() { ...@@ -116,12 +116,12 @@ cmd_publish() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree gitflow_check_clean_working_tree
gitflow_require_branch $BRANCH gitflow_require_branch $BRANCH
git fetch $ORIGIN git fetch -q $ORIGIN
gitflow_require_branch_absent $ORIGIN/$BRANCH gitflow_require_branch_absent $ORIGIN/$BRANCH
# create remote branch # create remote branch
git push $ORIGIN $BRANCH:refs/heads/$BRANCH git push $ORIGIN $BRANCH:refs/heads/$BRANCH
git fetch $ORIGIN git fetch -q $ORIGIN
# configure remote tracking # configure remote tracking
git config branch.$BRANCH.remote $ORIGIN git config branch.$BRANCH.remote $ORIGIN
...@@ -142,7 +142,7 @@ cmd_track() { ...@@ -142,7 +142,7 @@ cmd_track() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree gitflow_check_clean_working_tree
gitflow_require_branch_absent $BRANCH gitflow_require_branch_absent $BRANCH
git fetch $ORIGIN git fetch -q $ORIGIN
gitflow_require_branch $ORIGIN/$BRANCH gitflow_require_branch $ORIGIN/$BRANCH
# create tracking branch # create tracking branch
......
...@@ -49,7 +49,7 @@ cmd_start() { ...@@ -49,7 +49,7 @@ cmd_start() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree 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 $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branch_absent $BRANCH gitflow_require_branch_absent $BRANCH
...@@ -75,8 +75,8 @@ cmd_finish() { ...@@ -75,8 +75,8 @@ cmd_finish() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree gitflow_check_clean_working_tree
git fetch $ORIGIN $MASTER_BRANCH git fetch -q $ORIGIN $MASTER_BRANCH
git fetch $ORIGIN $DEVELOP_BRANCH git fetch -q $ORIGIN $DEVELOP_BRANCH
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
......
...@@ -49,7 +49,7 @@ cmd_start() { ...@@ -49,7 +49,7 @@ cmd_start() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree gitflow_check_clean_working_tree
git fetch $ORIGIN git fetch -q $ORIGIN
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
gitflow_require_branch_absent $BRANCH gitflow_require_branch_absent $BRANCH
...@@ -75,7 +75,7 @@ cmd_finish() { ...@@ -75,7 +75,7 @@ cmd_finish() {
# sanity checks # sanity checks
gitflow_check_clean_working_tree 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 $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
......
...@@ -44,7 +44,7 @@ cmd_start() { ...@@ -44,7 +44,7 @@ cmd_start() {
# publish branch # publish branch
git push $ORIGIN $BRANCH:refs/heads/$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.remote $ORIGIN
git config branch.$BRANCH.merge refs/heads/$BRANCH git config branch.$BRANCH.merge refs/heads/$BRANCH
git co $BRANCH git co $BRANCH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment