# possible regression (or me abusing git) in v1.5.5

2 messages from 2008-04-11 to 2008-04-11. Participants: tarmigan+git@gmail.com, Junio C Hamano.
Thread: https://gitlist.dev/t/13065

## tarmigan+git@gmail.com, 2008-04-11 19:21

Subject: possible regression (or me abusing git) in v1.5.5
Message-ID: <905315640804111221k53dd7063sae5710ed690114f0@mail.gmail.com>
URL: https://gitlist.dev/e/905315640804111221k53dd7063sae5710ed690114f0%40mail.gmail.com

```
Hello,

After upgrading to v1.5.5, I noticed a change in the way that git
treats symbolic links.

Git will follow symbolic links to directories when they were added as follows

$ git init
$ mkdir foo
$ touch foo/bar
$ ln -s foo foo1
$ git add foo1/
#               Note the trailing slash above.

In v1.5.5 (but not v1.5.4.5 and earlier),
$ git add -u
will remove foo1/bar from the index.

I have bisected this down to f58dbf (diff-files: careful when
inspecting work tree items).

The ability for git to follow links (instead of recording them) was a
useful feature for me, but I may have been abusing this "feature".  If
that is the consensus, it might make sense to have
$ git add foo1
and
$ git add foo1/
 behave the same way?

Thanks,
Tarmigan

```

## Junio C Hamano, 2008-04-11 21:06

Subject: Re: possible regression (or me abusing git) in v1.5.5
Message-ID: <7vbq4grtij.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vbq4grtij.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <905315640804111221k53dd7063sae5710ed690114f0@mail.gmail.com>

```
tarmigan+git@gmail.com writes:

> After upgrading to v1.5.5, I noticed a change in the way that git
> treats symbolic links.
>
> Git will follow symbolic links to directories when they were added as follows
>
> $ git init
> $ mkdir foo
> $ touch foo/bar
> $ ln -s foo foo1
> $ git add foo1/

In this step "git add" adds "foo1/bar", which is a bug that is shared
between 1.5.5 and previous versions.

Recent "git add -u" after that was taught to notice this bogosity (it
actually is git-diff-* family that was fixed), and fixes it.

```
