From: Johannes Schindelin Date: Tue, 25 Oct 2005 23:39:24 GMT Subject: [PATCH 1/4] git-init-db should error out with a message Message-ID: When the HEAD symref could not be created, it is helpful for the user to know that. Signed-off-by: Johannes Schindelin --- 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