chiark / gitweb /
Allow git-url to be '' to force fallback to git-proto etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:51:07 +0000 (18:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jul 2015 18:36:16 +0000 (19:36 +0100)
debian/changelog
dgit

index c5a823bd555147fa0e46c5b0e94720a5467622ed..029375bd41a674c0b4734fd2cbc4eace42ed25be 100644 (file)
@@ -17,6 +17,7 @@ dgit (0.31~~) unstable; urgency=low
   * Remove configuration relating to alioth.
   * Provide for different access mechanisms when pushing.
   * Provide for configurable git url suffix.
+  * Allow git-url to be '' to force fallback to git-proto etc.
   * Provide for checking git presence via http[s].
   * Do some quoting on debug output (needed if the server might not
     be trustworthy and might send us bad stuff).
diff --git a/dgit b/dgit
index 886e42b7a4fb1253e219740d288e6c02b67bf9bb..faffba6202a0cc6d0f6616a494aae807355eaa70 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -645,7 +645,7 @@ sub access_giturl (;$) {
     my ($optional) = @_;
     my $url = access_cfg('git-url','RETURN-UNDEF');
     my $suffix;
-    if (!defined $url) {
+    if (!length $url) {
        my $proto = access_cfg('git-proto', 'RETURN-UNDEF');
        return undef unless defined $proto;
        $url =