When the HEAD symref could not be created, it is helpful for the user to know that. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> --- init-db.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) applies-to: 51f96562f1ef47cd9a09731e3f27445efaddbbe7 159c632ef3cc7371aaa495c41afd5fd41e2d3f3f diff --git a/init-db.c b/init-db.c index aabc09f..2c27e18 100644 --- a/init-db.c +++ b/init-db.c @@ -192,7 +192,7 @@ static void create_default_files(const c strcpy(path + len, "HEAD"); if (read_ref(path, sha1) < 0) { if (create_symref(path, "refs/heads/master") < 0) - exit(1); + die("Could not create HEAD symref!"); } path[len] = 0; copy_templates(path, len, template_path); --- 0.99.8.GIT - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Wed Oct 26 09:39:39 2005
This archive was generated by hypermail 2.1.8 : 2005-10-26 09:40:12 EST