index 58f6b8f3779e55154b3d598f39bfee32eba3c545..73f788ef247febabbabe9bc0d21a890afa198cff 100644 (file)
--- a/builtin-upload-archive.c
+++ b/builtin-upload-archive.c
strcpy(buf, argv[1]); /* enter-repo smudges its argument */
if (!enter_repo(buf, 0))
- die("not a git archive");
+ die("'%s' does not appear to be a git repository", buf);
/* put received options in sent_argv[] */
sent_argc = 1;
return write_archive(sent_argc, sent_argv, prefix, 0);
}
+__attribute__((format (printf, 1, 2)))
static void error_clnt(const char *fmt, ...)
{
char buf[1024];