Re: [PATCH] tar-tree: add the "tar.applyUmask" config option
Show 8 quoted lines
> +int git_tar_config(const char *var, const char *value)
> +{
> + if (!strcmp(var, "tar.umask")) {
> + if (!strcmp(value, "user")) {
> + tar_umask = umask(0);
> + umask(tar_umask);
> + } else {
> + tar_umask = git_config_int(var, value);Looks like you forgot:
umask(tar_umask);Show 5 quoted lines
> + }
> + return 0;
> + }
> + return git_default_config(var, value);
> +}
Or else move it to just before the "return 0;" line.
Rogan