move bug report out of forum

This commit is contained in:
Joey Hess 2014-01-14 15:35:09 -04:00
parent 7569d79d92
commit 188f0bd58d
8 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.43"
subject="comment 1"
date="2014-01-13T18:57:48Z"
content="""
The log file is supposed to be stored by git-annex in the git-annex branch of the git repository. I don't know how it could end up being committed to the master branch instead.
Can you run these same commands again and reproduce the problem?
"""]]

View file

@ -0,0 +1,43 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawnsuhFUIfWNT-Q-C02FDaSQqceFDge5M9w"
nickname="Florian"
subject="comment 2"
date="2014-01-14T12:12:52Z"
content="""
Yes, I can always reproduce it with running \"sh test_ga.sh\" with test_ga.sh being:
set -x
mkdir GA1
cd GA1
git init
git annex init \"GA1\"
echo \"GA1\" > testfile
git annex add .
git annex sync
cd ..
git clone GA1 GA2
cd GA2
git annex init \"GA2\"
git annex get .
cat testfile
git annex unlock testfile
echo \"GA2\" > testfile
git annex sync
cd ../GA1
git annex sync
cd ..
which gives:
florian@horus ~/test % ll GA1
insgesamt 4
drwxr-x--- 1 florian florian 6 14. Jan 13:07 e6a/
lrwxrwxrwx 1 florian florian 178 14. Jan 13:07 testfile -> .git/annex/objects/V6/ZM/SHA256E-s4--241dca52164d30bee7a0be8c097f02e382acff765a9d4136718a37abd437a57c/SHA256E-s4--241dca52164d30bee7a0be8c097f02e382acff765a9d4136718a37abd437a57c
with testfile being a dead link. Complete output of the script is at http://pastebin.com/VktWAp2V
I would be glad to help furthermore.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.43"
subject="comment 3"
date="2014-01-14T18:55:11Z"
content="""
This script does not produce the problem for me. How did you install git-annex from the tarball?
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.43"
subject="comment 4"
date="2014-01-14T19:00:33Z"
content="""
Actually, I was able to reproduce this using the standalone tarball and runshell.
"""]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.43"
subject="comment 5"
date="2014-01-14T19:14:35Z"
content="""
Analysis: pre-commit hook is run with `GIT_INDEX_FILE=.git/index.lock`; this seems to be causing git-annex branch commits to land in that index file instead of where they are supposed to go. Also, commits of the files in the work tree also end up adding the symlinks to the git-annex branch when this happens. Apparantly because again it's using the wrong index file when committing to the git-annex branch.
So, an easy workaround (disable pre-commit hook or make it `unset GIT_INDEX_FILE`, but I need to dig into why this env var is messing with git-annex like this.. I thought git-annex set the env var itself!
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.43"
subject="comment 6"
date="2014-01-14T19:16:15Z"
content="""
Problem is that git-annex prepends `GIT_INDEX_FILE` to the environment; it does not overwrite it. So environment ends up with 2 copies of the var, and which will be used is undefined.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.43"
subject="comment 7"
date="2014-01-14T19:33:28Z"
content="""
I have fixed this in git. I will be moving this thread from the forum to the bug report tracker.
"""]]