summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-02 21:30:31 -0400
committerJune McEnroe <june@causal.agency>2020-05-02 21:30:31 -0400
commite0fdea644e884827f04b287ddc9438a78d7d137b (patch)
treeed809018ec0eac7f9abeaf69935b3fc002cc064f
parentFix git-fetch-email argument parsing (diff)
downloadimbox-e0fdea644e884827f04b287ddc9438a78d7d137b.tar.gz
imbox-e0fdea644e884827f04b287ddc9438a78d7d137b.zip
Pass explicit host to git-credential
-rw-r--r--git-fetch-email.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fetch-email.sh b/git-fetch-email.sh
index 83243c7..168dd7a 100644
--- a/git-fetch-email.sh
+++ b/git-fetch-email.sh
@@ -73,7 +73,7 @@ fi
 description() {
 	cat <<-EOF
 		protocol=imaps
-		host=${user#*@}
+		host=${host:-${user#*@}}
 		username=${user%@*}
 		${pass:+password=${pass}}
 	EOF