diff options
Diffstat (limited to 'builtin/rm.c')
-rw-r--r-- | builtin/rm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/builtin/rm.c b/builtin/rm.c index 8844f90655..b4589c824c 100644 --- a/builtin/rm.c +++ b/builtin/rm.c @@ -5,14 +5,20 @@ */ #define USE_THE_INDEX_VARIABLE #include "builtin.h" +#include "alloc.h" #include "advice.h" #include "config.h" #include "lockfile.h" #include "dir.h" #include "cache-tree.h" +#include "gettext.h" +#include "hash.h" #include "tree-walk.h" +#include "object-name.h" #include "parse-options.h" +#include "repository.h" #include "string-list.h" +#include "setup.h" #include "submodule.h" #include "pathspec.h" @@ -370,7 +376,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix) */ if (!force) { struct object_id oid; - if (get_oid("HEAD", &oid)) + if (repo_get_oid(the_repository, "HEAD", &oid)) oidclr(&oid); if (check_local_mod(&oid, index_only)) exit(1); |