xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scmversion: Improve svn interaction.
@ 2013-08-01 12:45 Andrew Cooper
  2013-08-01 15:44 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cooper @ 2013-08-01 12:45 UTC (permalink / raw)
  To: Xen-devel
  Cc: Keir Fraser, Ian Campbell, Andrew Cooper, Ian Jackson,
	Marek Marczykowski, Jan Beulich

Prevent running svn if .svn is not found; some versions of svn will
unconditionally create it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Marek Marczykowski <marmarek@invisiblethingslab.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <jbeulich@suse.com>
CC: Ian Campbell <ian.campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 xen/tools/scmversion |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/tools/scmversion b/xen/tools/scmversion
index b0c3b95..ccc6334 100755
--- a/xen/tools/scmversion
+++ b/xen/tools/scmversion
@@ -77,7 +77,7 @@ scm_version()
 	fi
 
 	# Check for svn and a svn repo.
-	if rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
+	if test -d .svn && rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
 		rev=`echo $rev | awk '{print $NF}'`
 		printf -- 'svn:%s' "$rev"
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-01 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 12:45 [PATCH] scmversion: Improve svn interaction Andrew Cooper
2013-08-01 15:44 ` Ian Campbell
2013-08-01 15:48   ` Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).