When working on a Git repository that was cloned from a git-svn repo,
such as git://repo.or.cz/mono/afaerber.git, the version is currently
displayed as "tarball" in `mono -V`.
The method used to obtain the revision info from git since r134435 -
searching the log - is independent of git-svn, so no need to check
for .git/svn directory.
* Makefile.am (version.h): Check for pure .git directory only,
fixes SVN revision when using git without git-svn.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=154256
+2010-03-26 Andreas Faerber <andreas.faerber@web.de>
+
+ * Makefile.am (version.h): Check for pure .git directory only,
+ fixes SVN revision when using git without git-svn.
+
+ Contributed under MIT/X11 license.
+
2010-03-26 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c: Apply some openbsd changes from openbsd ports.
$(posix_sources)
version.h: Makefile
- if test -d $(top_srcdir)/.git/svn; then svn_info="git log --no-color --first-parent -n1 --grep=git-svn-id: --pretty=format:%b | sed -n -e 's,git-svn-id: \(.*\)@\(.*\) .*,URL: \1 Revision: \2,p'"; fi; \
+ if test -d $(top_srcdir)/.git; then svn_info="git log --no-color --first-parent -n1 --grep=git-svn-id: --pretty=format:%b | sed -n -e 's,git-svn-id: \(.*\)@\(.*\) .*,URL: \1 Revision: \2,p'"; fi; \
if test -d $(srcdir)/.svn; then svn_info='svn info'; fi; \
if test -n "$$svn_info"; then \
(cd $(top_srcdir); \