From 234f452434869b6d064e83ae8290e14ba045d2ef Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 24 Mar 2024 13:46:42 +0100 Subject: [PATCH] git:make-fork: Add call to git-https-and-ssh When setting up the remotes the fetch url can use https since the fork will be public anyways. This delays a prompt for the ssh key until it is really necessary. --- .config/zsh/autoload/git/git-make-fork | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/zsh/autoload/git/git-make-fork b/.config/zsh/autoload/git/git-make-fork index 62730d5..02d6c24 100755 --- a/.config/zsh/autoload/git/git-make-fork +++ b/.config/zsh/autoload/git/git-make-fork @@ -11,6 +11,7 @@ git remote rename origin upstream # Assume that the fork is named equally url="$(git remote get-url upstream)" git remote add origin "git@github.com:druckdev/${url:t}" +git https-and-ssh git fetch origin