Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: convert read_object_with_reference to object_id
[gitweb.git]
/
builtin
/
rm.c
diff --git
a/builtin/rm.c
b/builtin/rm.c
index 4a2fcca27b3f722ca520c2411b80e6984ecf780a..974a7ef5bf5f9b427e4083caed09f04dcfddd2b3 100644
(file)
--- a/
builtin/rm.c
+++ b/
builtin/rm.c
@@
-178,7
+178,7
@@
static int check_local_mod(struct object_id *head, int index_only)
* way as changed from the HEAD.
*/
if (no_head
- || get_tree_entry(head
->hash, name, oid.hash
, &mode)
+ || get_tree_entry(head
, name, &oid
, &mode)
|| ce->ce_mode != create_ce_mode(mode)
|| oidcmp(&ce->oid, &oid))
staged_changes = 1;