Commit 02f81ce3 authored by Kevin Funk's avatar Kevin Funk
Browse files

Add "--force" to git-rm call

Otherwise it isn't possible to remove files when there are
local modifications.
parent a27faa9e
......@@ -477,7 +477,9 @@ VcsJob* GitPlugin::remove(const KUrl::List& files)
DVcsJob* job = new GitJob(dotGitDir, this);
job->setType(VcsJob::Remove);
*job << "git" << "rm" << "-r";
// git refuses to delete files with local modifications
// use --force to overcome this
*job << "git" << "rm" << "-r" << "--force";
*job << "--" << files_;
return job;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment