Permalink
Browse files

appropriately fall back to setting values in .git/config

  • Loading branch information...
1 parent fa19ed2 commit 7a92aac627eb20009cbd01fdfc605d2206902402 @bloveridge committed Dec 21, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 git-flow-init
View
@@ -48,13 +48,13 @@ parse_args() {
# save config values to .gitflow if publish flag was specified
gitflow_config_set() {
+ local key=$1
+ local value=$2
if flag publish; then
- local key=$1
- local value=$2
- local config=$(gitflow_config_path)
- git config --file "$config" $key "$value"
+ local config=$(gitflow_config_path)
+ git config --file "$config" $key "$value"
else
- git config "$config" $key "$value"
+ git config $key "$value"
fi
}

0 comments on commit 7a92aac

Please sign in to comment.