#include "dir.h"
#include "pack-refs.h"
#include "sigchain.h"
+ #include "branch.h"
+#include "remote.h"
+#include "run-command.h"
/*
* Overall FIXMEs:
return local_refs;
}
- static void install_branch_config(const char *local,
- const char *origin,
- const char *remote)
- {
- struct strbuf key = STRBUF_INIT;
- strbuf_addf(&key, "branch.%s.remote", local);
- git_config_set(key.buf, origin);
- strbuf_reset(&key);
- strbuf_addf(&key, "branch.%s.merge", local);
- git_config_set(key.buf, remote);
- strbuf_release(&key);
- }
-
int cmd_clone(int argc, const char **argv, const char *prefix)
{
- int use_local_hardlinks = 1;
- int use_separate_remote = 1;
int is_bundle = 0;
struct stat buf;
const char *repo_name, *repo, *work_tree, *git_dir;