Skip to content

Commit

Permalink
clone: Quote user supplied path in a single quote pair
Browse files Browse the repository at this point in the history
Without this patch,

    $ git clone foo .

results in this:

    Cloning into ....
    done.

With it:

    Cloning into '.'...
    done.

Signed-off-by: Richard Hartmann <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
RichiH authored and gitster committed Oct 27, 2011
1 parent 25f745f commit 8debf69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ int cmd_clone(int argc, const char **argv, const char *prefix)

if (0 <= option_verbosity) {
if (option_bare)
printf(_("Cloning into bare repository %s...\n"), dir);
printf(_("Cloning into bare repository '%s'...\n"), dir);
else
printf(_("Cloning into %s...\n"), dir);
printf(_("Cloning into '%s'...\n"), dir);
}
init_db(option_template, INIT_DB_QUIET);
write_config(&option_config);
Expand Down

0 comments on commit 8debf69

Please sign in to comment.