Please describe the problem.

Internal Server Error when setting up new annex and git push.default set to simple.

What steps will reproduce the problem?

git v1.8.2.1 installed on mac os x 10.8.3 via brew

Set push.default = simple (for 2.0-style push handling) Point git-annex-assistant at a directory.

What version of git-annex are you using? On what operating system?

git-annex version 4.20130422-gb9341fd (from annex-assistant's footer) git version 1.8.2.1 Mac OS X 10.8.3

Please provide any additional information below.

Changing the push.default to "matching"

The error message as shown was:

Internal Server Error git init failed! Output: error: Malformed value for push.default: simple error: Must be one of nothing, matching, tracking or current. fatal: bad config file line 22 in /Users/nhyde/.gitconfig

My .gitconfig is as follows:

[user] email = nhyde@example.com #email = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx name = Nathan Hyde [alias] st = status ci = commit br = branch co = checkout df = diff lg = log -p who = shortlog -s -- fs = flow feature start ff = flow feature finish [color] ui = true [core] excludesfile = /Users/nhyde/.gitignore_global ignorecase = false editor = vim [push] default = matching

# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/debug.log


# End of transcript or log.

Closing this because all autobuilders have been upgraded to a more recent version of git. done --Joey

Reopened, because the Linux autobuilds have been downgraded to Debian stable and have this problem again. --Joey

Closing again! Autobuilders all run unstable and will have a current git. done --Joey

I can't think of a way to make the assistant detect that ~/.gitconfig contains settings not supported by the version of git bundled with git-annex. Even if I could detect it, what could it do? It could perhaps prevent the config file being used by git-annex, but that could have other unwanted consequences.

An error message like this seems about as good as this situation can be handled. However, the version of git bundled with git-annex should be kept up-to-date to prevent this kind of problem as much as possible. I don't currently have a good way to ensure that happens; it takes whatever version of git is installed on the build system.

I'm going to try to get the autobuilders all updated to git 1.8.2, at least.

Comment by joey Mon May 13 19:02:38 2013
Done for both Linux autobuilds. OSX still needs updating; emailed the owners of those builds.
Comment by joey Mon May 13 19:08:09 2013

I've seen that git-annex for linux is still coming with git 1.7, which causes problems with my installed git (1.8.1.2). Wasn't that corrected in autobuilds? Thanks in advance. Keep up the good work. Regards, Juan

Comment by Juan Fri Aug 23 02:04:42 2013
It was done for the autobuilds, but then I switched them to build using Debian stable, which still has git 1.7, and there is not currently a backport of a newer git to stable for me to use.
Comment by joeyh.name Fri Aug 23 17:41:32 2013