diff --git a/plugins/git4idea/src/git4idea/config/GitVersionSpecialty.java b/plugins/git4idea/src/git4idea/config/GitVersionSpecialty.java index 3c3f384249b2..fbb0826f1fd8 100644 --- a/plugins/git4idea/src/git4idea/config/GitVersionSpecialty.java +++ b/plugins/git4idea/src/git4idea/config/GitVersionSpecialty.java @@ -73,10 +73,15 @@ public enum GitVersionSpecialty { } }, + /** + * {@code git fetch --prune} is actually supported since 1.7.0, + * but before 1.7.7.2 calling {@code git fetch --prune origin master} would delete all other references. + * This was fixed in {@code ed43de6ec35dfd4c4bd33ae9b5f2ebe38282209f} and added to the Git 1.7.7.2 release. + */ SUPPORTS_FETCH_PRUNE { @Override public boolean existsIn(@NotNull GitVersion version) { - return version.isLaterOrEqual(new GitVersion(1, 7, 0, 0)); + return version.isLaterOrEqual(new GitVersion(1, 7, 7, 2)); } },