diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2008-10-03 20:23:50 +0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-05 23:49:55 -0700 |
commit | 5209ac4de4192e4ffcd72861517daccf387391e5 (patch) | |
tree | 2609ebc3b8ef7380d2794347a8cceb665edf1c6d /builtin-blame.c | |
parent | 5a625b07bbff709037f26be1c393337b6d9e103f (diff) | |
download | git-5209ac4de4192e4ffcd72861517daccf387391e5.tar.gz |
builtin-blame: Fix blame -C -C with submodules.
When performing copy detection, git-blame tries to
read gitlinks as blobs, which causes it to die.
This patch adds a check to skip them.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'builtin-blame.c')
-rw-r--r-- | builtin-blame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-blame.c b/builtin-blame.c index 9bc901c292..101c4162da 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -1136,6 +1136,8 @@ static int find_copy_in_parent(struct scoreboard *sb, if (!DIFF_FILE_VALID(p->one)) continue; /* does not exist in parent */ + if (S_ISGITLINK(p->one->mode)) + continue; /* ignore git links */ if (porigin && !strcmp(p->one->path, porigin->path)) /* find_move already dealt with this path */ continue; |