emaste 04db41849c newvers.sh: accommodate git worktree
newvers.sh looks for a .vcs subdirectory (e.g. .git, .svn) to determine
which vcs info tool to run (e.g., git rev-parse, svn info).

(As of r308789 if a .vcs subdirectory is not found at ${TOPDIR} then
newvers.sh walks up successive parent directories, testing for the .vcs
subdirectory at each step.  This is done in case the FreeBSD source is
built in a subdirectory as part of some larger project, but either way
newvers.sh still tests for the .vcs subdirectory.)

However, when using git worktree there is no .git subdirectory but
rather a plain text .git file which contains a reference to the main
working tree.

Change findvcs() to test that the .vcs entry exists, regardless of type.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
2017-08-22 17:57:34 +00:00
..
2017-05-23 09:29:05 +00:00
2017-08-18 16:38:33 +00:00
2017-08-21 17:45:06 +00:00
2017-08-22 17:57:34 +00:00
2017-08-16 22:54:35 +00:00
2017-08-21 20:27:45 +00:00
2017-07-09 13:53:32 +00:00
2017-08-21 20:27:45 +00:00
2017-08-16 19:40:07 +00:00
2017-08-21 13:54:29 +00:00
2017-05-23 09:29:05 +00:00
2017-06-08 21:30:34 +00:00
2017-05-09 05:08:47 +00:00
2017-08-16 08:49:11 +00:00