Git development
 help / color / mirror / Atom feed
* [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it
@ 2006-04-03 22:18 Eric Wong
  2006-04-03 22:18 ` [PATCH 4/4] contrib/git-svn: make sure our git-svn is up-to-date for test Eric Wong
  2006-04-03 22:21 ` [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2006-04-03 22:18 UTC (permalink / raw)
  To: Junio C Hamano, git; +Cc: Eric Wong

fetching from repos without an authors-file defined was broken.

Signed-off-by: Eric Wong <normalperson@yhbt.net>

---

 contrib/git-svn/git-svn.perl |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

029626bf987cff7ba42d8158c687cf4902765968
diff --git a/contrib/git-svn/git-svn.perl b/contrib/git-svn/git-svn.perl
index edfb19c..e7fff46 100755
--- a/contrib/git-svn/git-svn.perl
+++ b/contrib/git-svn/git-svn.perl
@@ -77,10 +77,13 @@ foreach my $o (keys %opts) {
 	$arg .= ' --bool' if ($o !~ /=[sfi]$/);
 	$arg .= " svn.$key"; # $key only matches [a-z\-], always shell-safe
 	if (ref $v eq 'ARRAY') {
-		chomp(@$v = `$arg`);
+		chomp(my @tmp = `$arg`);
+		@$v = @tmp if @tmp;
 	} else {
-		chomp($$v = `$arg`);
-		$$v = 0 if $$v eq 'false';
+		chomp(my $tmp = `$arg`);
+		if ($tmp && !($arg =~ / --bool / && $tmp eq 'false')) {
+			$$v = $tmp;
+		}
 	}
 }
 
-- 
1.3.0.rc1.g595e

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

* [PATCH 4/4] contrib/git-svn: make sure our git-svn is up-to-date for test
  2006-04-03 22:18 [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it Eric Wong
@ 2006-04-03 22:18 ` Eric Wong
  2006-04-03 22:21 ` [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2006-04-03 22:18 UTC (permalink / raw)
  To: Junio C Hamano, git; +Cc: Eric Wong

Bugs like the last one could've been avoided if it weren't for
this...

Signed-off-by: Eric Wong <normalperson@yhbt.net>

---

 contrib/git-svn/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

d3ce1325c4933cd0e5f8f9810b2ffc33ddf45aac
diff --git a/contrib/git-svn/Makefile b/contrib/git-svn/Makefile
index d7f1643..acedf73 100644
--- a/contrib/git-svn/Makefile
+++ b/contrib/git-svn/Makefile
@@ -28,7 +28,7 @@ git-svn.xml : git-svn.txt
 git-svn.html : git-svn.txt
 	asciidoc -b xhtml11 -d manpage \
 		-f ../../Documentation/asciidoc.conf $<
-test:
+test: git-svn
 	cd t && $(SHELL) ./t0000-contrib-git-svn.sh
 
 clean:
-- 
1.3.0.rc1.g595e

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

* Re: [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it
  2006-04-03 22:18 [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it Eric Wong
  2006-04-03 22:18 ` [PATCH 4/4] contrib/git-svn: make sure our git-svn is up-to-date for test Eric Wong
@ 2006-04-03 22:21 ` Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2006-04-03 22:21 UTC (permalink / raw)
  To: Junio C Hamano, git

Subject: Re: [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it
                    ^ oops, disregard that, these should've been 1/2 and 2/2

-- 
Eric Wong

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

end of thread, other threads:[~2006-04-03 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-03 22:18 [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it Eric Wong
2006-04-03 22:18 ` [PATCH 4/4] contrib/git-svn: make sure our git-svn is up-to-date for test Eric Wong
2006-04-03 22:21 ` [PATCH 3/4] contrib/git-svn: ensure repo-config returns a value before using it Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox