]> git.proxmox.com Git - libgit2.git/commit
checkout: upgrade to `SAFE_CREATE` when no index file
authorEdward Thomson <ethomson@edwardthomson.com>
Sat, 14 Feb 2015 15:33:06 +0000 (10:33 -0500)
committerEdward Thomson <ethomson@microsoft.com>
Fri, 27 Feb 2015 18:50:32 +0000 (13:50 -0500)
commite6da3e4496188b36dbc83950f5e771a373c8ebcc
treec966272518558cb2fd101e01b00f264e554997ec
parent5cbe950fb8b18e930f79c81bdab0aebf21443596
checkout: upgrade to `SAFE_CREATE` when no index file

When the repository does not contain an index, emulate git's behavior
and upgrade to `SAFE_CREATE`.  This allows us to check out repositories
created with `git clone --no-checkout`.
src/checkout.c
tests/checkout/tree.c