Commit d52aaa3de81c3c908e38d7ae170493570737e7ff

Stefan Sperling 2020-03-18T17:29:10

display path to cloned repository when 'got clone' is done

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 09909ce..086fa5e 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1092,6 +1092,8 @@ cmd_clone(int argc, char *argv[])
 			printf("Setting %s to %s\n", GOT_REF_HEAD,
 			    got_ref_get_symref_target(symref));
 		}
+		if (verbosity >= 0)
+			printf("Created cloned repository '%s'\n", repo_path);
 
 		error = got_ref_write(symref, repo);
 		got_ref_close(symref);