return ret;
update_refs_for_switch(opts, &old, new);
- free((char *)old.path);
- return post_checkout_hook(old.commit, new->commit, 1);
- }
- static int branch_track = 0;
-
- static int git_checkout_config(const char *var, const char *value)
- {
- if (!strcmp(var, "branch.autosetupmerge"))
- branch_track = git_config_bool(var, value);
-
- return git_default_config(var, value);
+ ret = post_checkout_hook(old.commit, new->commit, 1);
++ free((char *)old.path);
+ return ret || opts->writeout_error;
}
int cmd_checkout(int argc, const char **argv, const char *prefix)