Bug 985383 - git-annex inoperable because git user.email config variable ignored
Summary: git-annex inoperable because git user.email config variable ignored
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: git-annex
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-17 11:17 UTC by Stephen
Modified: 2013-08-29 22:19 UTC (History)
3 users (show)

Fixed In Version: git-annex-3.20130207-1.fc19
Clone Of:
Environment:
Last Closed: 2013-08-29 22:19:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephen 2013-07-17 11:17:06 UTC
Description of problem:

git annex can't read the user.email variable from ~/.gitconfig even though it exists, and refuses to operate.


Version-Release number of selected component (if applicable):

git-annex-3.20121009-3.fc19.x86_64
git-1.8.3.1-1.fc19.x86_64


How reproducible:

Always.


Steps to Reproduce:

$ mkdir test1

$ cd test1

$ git init
Initialized empty Git repository in /home/jo/test1/.git/

$ git annex init
init  
*** Please tell me who you are.

Run

  git config --global user.email "you"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <jo@machine.(none)>) not allowed

git-annex: user error (git ["--git-dir=/home/jo/test1/.git","--work-tree=/home/jo/test1","commit-tree","4b825dc642cb6eb9a060e54bf8d69288fbee4904"] exited 128)
failed
git-annex: init: 1 failed

$ git config --global user.name Jo
$ git config --global user.email jo

$ cat ~/.gitconfig
[user]
	name = Jo
	email = jo

$ git config --global user.email
jo

$ git config user.email
jo

$ git annex init
init  
*** Please tell me who you are.

Run

  git config --global user.email "you"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <jo@yo.(none)>) not allowed

git-annex: user error (git ["--git-dir=/home/jo/test1/.git","--work-tree=/home/jo/test1","commit-tree","4b825dc642cb6eb9a060e54bf8d69288fbee4904"] exited 128)
failed
git-annex: init: 1 failed


Actual results:

git-annex: init: 1 failed


Expected results:

The annex repo should be initialised with the settings from ~/.gitconfig


Additional info:

env | grep GIT
<nothing>

Tested with a fresh user account.

Comment 1 Stephen 2013-07-19 21:03:53 UTC
I downloaded the pre-built binary from:

  http://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz

dated 2013-07-09 and 'git annex init' works fine:

$ git annex init
init  ok
(Recording state in git...)

I don't know whether this means that this is a packaging bug or an annex bug which has already been fixed upstream.

I tried:

  sudo yum update --enablerepo=updates-testing git-annex

but there's nothing pending.

Comment 2 Dominic Cleal 2013-08-01 22:24:14 UTC
Confirmed that the newer version fixes this issue, perhaps an incompatibility with a newer version of git.  I rebuilt git-annex-3.20130207-1 from F20 on F19 and "git annex init" now works.

Comment 3 Jens Petersen 2013-08-20 07:50:31 UTC
Thank you Stephen for reporting this and to Dominic for confirming
that 3.20130207 is okay.

Comment 4 Fedora Update System 2013-08-20 08:01:59 UTC
git-annex-3.20130207-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/git-annex-3.20130207-1.fc19

Comment 5 Fedora Update System 2013-08-21 00:03:59 UTC
Package git-annex-3.20130207-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing git-annex-3.20130207-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15045/git-annex-3.20130207-1.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-08-29 22:19:20 UTC
git-annex-3.20130207-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.