Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

brew update - opens vi, asks for a commit msg #11673

Closed
2bits opened this issue Apr 15, 2012 · 4 comments
Closed

brew update - opens vi, asks for a commit msg #11673

2bits opened this issue Apr 15, 2012 · 4 comments

Comments

@2bits
Copy link
Contributor

2bits commented Apr 15, 2012

Using git 1.7.10 and executing brew update, instead of just doing update, it opens up vi and asks me for a commit message,

Merge branch 'master' of https://github.com/mxcl/homebrew

Is it me or just me?

@jacknagel
Copy link
Contributor

Git 1.7.10 changed the behavior of git merge and by extension git pull; non-fast-forward merges now always spawn the commit message editor. Most people will never see it because git pull will fast-forward when master hasn't diverged from upstream.

There is an environment variable we can export during brew update to suppress it.

@2bits
Copy link
Contributor Author

2bits commented Apr 15, 2012

Thanks for the info.

@2bits 2bits closed this as completed Apr 15, 2012
@ghost
Copy link

ghost commented May 8, 2012

@jacknagel I'm constantly bumping into this issue. Setting GIT_MERGE_AUTOEDIT just before the pull didn't seem to work either. The only solution which worked for me was:
git config --add branch.master.mergeoptions --no-edit but I'm not sure whether this is wise...

@jacknagel
Copy link
Contributor

Sorry, I completely lost track of this. Either of

$ GIT_MERGE_AUTOEDIT=no brew update

or

$ export GIT_MERGE_AUTOEDIT=no
$ brew update

should work, but I'll see about setting this in brew update.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants