diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-11-03 00:23:52 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-11-03 00:23:52 -0800 |
| commit | 407e1d6e127357a0fbe1a9f91ee616a2b7ec29db (patch) | |
| tree | a2efb8d179aff14b73db024f936ef0dd092b7a7c /builtin-init-db.c | |
| parent | Merge branch 'sp/keep-pack' into np/index-pack (diff) | |
| parent | gitweb: Better support for non-CSS aware web browsers (diff) | |
| download | git-407e1d6e127357a0fbe1a9f91ee616a2b7ec29db.tar.gz git-407e1d6e127357a0fbe1a9f91ee616a2b7ec29db.zip | |
Merge branch 'master' into np/index-pack
* master: (90 commits)
gitweb: Better support for non-CSS aware web browsers
gitweb: Output also empty patches in "commitdiff" view
gitweb: Use git-for-each-ref to generate list of heads and/or tags
for-each-ref: "creator" and "creatordate" fields
Add --global option to git-repo-config.
pack-refs: Store the full name of the ref even when packing only tags.
git-clone documentation didn't mention --origin as equivalent of -o
Minor grammar fixes for git-diff-index.txt
link_temp_to_file: call adjust_shared_perm() only when we created the directory
Remove uneccessarily similar printf() from print_ref_list() in builtin-branch
pack-objects doesn't create random pack names
branch: work in subdirectories.
gitweb: Use 's' regexp modifier to secure against filenames with LF
gitweb: Secure against commit-ish/tree-ish with the same name as path
gitweb: esc_html() author in blame
git-svnimport: support for partial imports
link_temp_to_file: don't leave the path truncated on adjust_shared_perm failure
Move deny_non_fast_forwards handling completely into receive-pack.
revision traversal: --unpacked does not limit commit list anymore.
Continue traversal when rev-list --unpacked finds a packed commit.
...
Diffstat (limited to 'builtin-init-db.c')
| -rw-r--r-- | builtin-init-db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-init-db.c b/builtin-init-db.c index c3ed1ce492..235a0ee48f 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -218,8 +218,8 @@ static void create_default_files(const char *git_dir, const char *template_path) * branch, if it does not exist yet. */ strcpy(path + len, "HEAD"); - if (read_ref(path, sha1) < 0) { - if (create_symref(path, "refs/heads/master") < 0) + if (read_ref("HEAD", sha1) < 0) { + if (create_symref("HEAD", "refs/heads/master") < 0) exit(1); } |
