# git blame vs. directory symlinks

1 messages from 2010-08-27 to 2010-08-27. Participants: Alexander Gladysh.
Thread: https://gitlist.dev/t/24886

## Alexander Gladysh, 2010-08-27 11:25

Subject: git blame vs. directory symlinks
Message-ID: <AANLkTik-9H+KUjn-v7d4EeHaBn8=u5GjOi39T03EmCHG@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTik-9H%2BKUjn-v7d4EeHaBn8%3Du5GjOi39T03EmCHG%40mail.gmail.com

```
Hi, list!

OS X 10.6.4
git version 1.7.2.2

Another bug with symlinked directories.

The git blame works correctly for the symliked files, displaying the
history for the symlink source.

However, if the symlink is not the file itself, but a directory in
path, git blame reports the file as "not committed yet".

See minimal example below.

HTH,
Alexander.

mkdir repo && cd repo
git init
mkdir alpha
echo "one" > alpha/file.txt
git add .
git commit -m "initial commit"
echo "two" >> alpha/file.txt
git commit -a -m "updated alpha"
ln -s alpha beta
git add .
git commit -m "beta symlink"

git blame alpha/file.txt
^33848ab (Alexander Gladysh 2010-08-27 15:16:16 +0400 1) one
5afed689 (Alexander Gladysh 2010-08-27 15:16:35 +0400 2) two

git blame beta/file.txt
00000000 (Not Committed Yet 2010-08-27 15:17:04 +0400 1) one
00000000 (Not Committed Yet 2010-08-27 15:17:04 +0400 2) two

```
