fix: allow custom branch name in gimi push

This commit is contained in:
Jozef Steinhübl 2024-08-20 23:04:45 +02:00
parent 523ddd9eb8
commit d43f879b36
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -97,7 +97,7 @@ int cli_command_push(int argc, char **argv) {
return 1;
}
char *branch_name = get_current_branch_name();
char *branch_name = argc == 1 ? argv[0] : get_current_branch_name();
for (int i = 0; i < cfg->providers_size; i++) {
struct gimi_config_provider *provider = cfg->providers[i];