]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-reset.c
Free the path_lists used to find non-local tags in git-fetch
[git.git] / builtin-reset.c
index af0037ec6e3456ccd688da6375c76db4a59f099a..bb3e19240a8921126600cddd70ac46b3b1bada29 100644 (file)
@@ -63,14 +63,10 @@ static int reset_index_file(const unsigned char *sha1, int is_hard_reset)
 
 static void print_new_head_line(struct commit *commit)
 {
-       const char *hex, *dots = "...", *body;
+       const char *hex, *body;
 
        hex = find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV);
-       if (!hex) {
-               hex = sha1_to_hex(commit->object.sha1);
-               dots = "";
-       }
-       printf("HEAD is now at %s%s", hex, dots);
+       printf("HEAD is now at %s", hex);
        body = strstr(commit->buffer, "\n\n");
        if (body) {
                const char *eol;