Unbreak git_remote_ls on a local transport after disconnecting.
Make sure we don't leak memory again.
Revert "Work around reparse point stat issues"

This reverts commit 32c12ea6a9cafd76a746af2e2be9366c95752f5b.
Correctly handle junctions

A junction has S_IFDIR | S_IFLNK set, however, only one makes sense.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Prefer younger merge bases over older ones.

git-core prefers younger merge bases over older ones in case that multiple valid merge bases exists.
Merge pull request #1680 from csware/win32-junction

Correctly handle win32 junctions
Merge pull request #1678 from arthurschreiber/unbreak-local-ls-after-disconnect

Unbreak git_remote_ls on a local transport after disconnecting.
Add a test case.
Merge pull request #1681 from arthurschreiber/patch-1

Prefer younger merge bases over older ones.