From 9308011c98e2dc4d930efb0991fe92467c23c4ad Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 18 Jul 2015 18:51:07 +0100 Subject: [PATCH] Allow git-url to be '' to force fallback to git-proto etc. --- debian/changelog | 1 + dgit | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c5a823bd..029375bd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 886e42b7..faffba62 100755 --- 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 = -- 2.30.2