summaryrefslogtreecommitdiff
path: root/Git.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-03-05 12:42:52 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-03-05 12:42:52 -0400
commit51338486dcf9ab86de426e41b1eb31af1d3a6c87 (patch)
treeaf9c9edd522daf933082a40d135c24bc154d2700 /Git.hs
parent52e88f3ebf974c3802e951e17593ce5768c04b92 (diff)
Fix a bug in symlink calculation code, that triggered in rare cases where an annexed file is in a subdirectory that nearly matched to the .git/annex/object/xx/yy subdirectories.
This is a straight up pure-code stinker. The relative path calculation looked for common subdirectories in the two paths, but failed to stop after the paths diverged. When a later pair of subdirectories were the same, the resulting relative path was wrong. Added regression test for this.
Diffstat (limited to 'Git.hs')
0 files changed, 0 insertions, 0 deletions