Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
repository.c: replace hold_locked_index() with repo_hold_locked_index()
[gitweb.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index 01793d612620246b14fa57f6ce3ed6c33df65d0f..08cde3c4bf1ea6e6a5d855ea37de34a23130d638 100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-4712,7
+4712,8
@@
static int apply_patch(struct apply_state *state,
state->index_file,
LOCK_DIE_ON_ERROR);
else
- hold_locked_index(&state->lock_file, LOCK_DIE_ON_ERROR);
+ repo_hold_locked_index(state->repo, &state->lock_file,
+ LOCK_DIE_ON_ERROR);
}
if (state->check_index && read_apply_cache(state) < 0) {