From b2930de82f96119b5e4c3ac8f7c855477dfc2e6b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 2 Nov 2014 16:52:57 +0000 Subject: [PATCH] New $some-user-force config variable This will allow dgit-distro.debian.git-user-force to be set to dgit, but reset to '' by dgit-distro.debian/alioth.git-user-force, so that when diverted back to alioth, we fall back to the previously-specified username. --- dgit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dgit b/dgit index af710657..38b02e4e 100755 --- a/dgit +++ b/dgit @@ -664,7 +664,9 @@ sub access_runeinfo ($) { sub access_someuserhost ($) { my ($some) = @_; - my $user = access_cfg("$some-user",'username'); + my $user = access_cfg("$some-user-force", 'RETURN-UNDEF'); + defined($user) && length($user) or + $user = access_cfg("$some-user",'username'); my $host = access_cfg("$some-host"); return length($user) ? "$user\@$host" : $host; } -- 2.30.2