]> Savannah Git Hosting - gnulib.git/commit
vc-list-files: Adjust the script to support git worktrees
authorErik Skultety <eskultet@redhat.com>
Thu, 27 Jul 2017 11:47:23 +0000 (13:47 +0200)
committerEric Blake <eblake@redhat.com>
Thu, 27 Jul 2017 12:16:50 +0000 (07:16 -0500)
commite97dce1b84ab639233ba1acdcacfbbf93c4cfbed
treeef0e9bf9cfedab799e10b88c594237299ef278e4
parente20e345193c979bb7bfa1316ba2e2b70116b84c7
vc-list-files: Adjust the script to support git worktrees

Git's worktree feature creates a ".git" which refers to references from
the original (main) repository. This makes vc-list-files to fail for
worktrees since it checks for both file's existence and the file being a
directory. Checking for existence should be okay in this case, since the
script doesn't touch anything within ".git" directly. Instead, it
invokes git commands, which work from within a worktree nicely.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Message-Id: <0ad867fe1a1e0999e6666ef75398630f28e78e35.1501156018.git.eskultet@redhat.com>
ChangeLog
build-aux/vc-list-files