From 91821f60571415fce4f3b85d5dfb56c8831b7b2f Mon Sep 17 00:00:00 2001 From: amtoine Date: Sat, 5 Oct 2024 13:16:18 +0200 Subject: [PATCH] always commit --- pkgs/nu-git-manager/nu-git-manager/mod.nu | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/nu-git-manager/nu-git-manager/mod.nu b/pkgs/nu-git-manager/nu-git-manager/mod.nu index 1893f38..f2987e4 100644 --- a/pkgs/nu-git-manager/nu-git-manager/mod.nu +++ b/pkgs/nu-git-manager/nu-git-manager/mod.nu @@ -150,11 +150,9 @@ export def "gm clone" [ ^git clone ...$args if (^git -C $local_path log | complete | get exit_code) != 0 { - print "it appears you have cloned an empty repository" - let res = ["yes", "no"] | input list --fuzzy "do you want to create an 'init' commit?" - if $res == "yes" { - ^git -C $local_path commit --allow-empty - } + print $"it appears you have cloned an (ansi yellow_bold)empty repository(ansi reset)" + print $"creating an (ansi cyan)'init' commit(ansi reset)" + ^git -C $local_path commit --allow-empty --message "init" } ^git -C $local_path remote set-url $remote $urls.fetch