Merge branch 'rj/add-chmod-error-message' into maint
Message fix. * rj/add-chmod-error-message: builtin/add: add detail to a 'cannot chmod' error messagemaint
commit
70def2c47f
|
|
@ -32,7 +32,7 @@ struct update_callback_data {
|
||||||
int add_errors;
|
int add_errors;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
|
static void chmod_pathspec(struct pathspec *pathspec, char flip)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
@ -42,8 +42,8 @@ static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
|
||||||
if (pathspec && !ce_path_match(ce, pathspec, NULL))
|
if (pathspec && !ce_path_match(ce, pathspec, NULL))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (chmod_cache_entry(ce, force_mode) < 0)
|
if (chmod_cache_entry(ce, flip) < 0)
|
||||||
fprintf(stderr, "cannot chmod '%s'", ce->name);
|
fprintf(stderr, "cannot chmod %cx '%s'\n", flip, ce->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue