rev-list: make "bisect_list" variable local to "cmd_rev_list"
[gitweb.git] / builtin-fetch.c
index 7fb35fca9d1b57dacaebfd3cb9b2af4d035e750c..7293146525f525f628499744481796dad8a4a861 100644 (file)
@@ -544,7 +544,8 @@ static void check_not_current_branch(struct ref *ref_map)
        for (; ref_map; ref_map = ref_map->next)
                if (ref_map->peer_ref && !strcmp(current_branch->refname,
                                        ref_map->peer_ref->name))
-                       die("Refusing to fetch into current branch");
+                       die("Refusing to fetch into current branch %s "
+                           "of non-bare repository", current_branch->refname);
 }
 
 static int do_fetch(struct transport *transport,