summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorAndrew Niefer2011-07-27 17:17:49 (EDT)
committer Andrew Niefer2011-07-27 17:17:49 (EDT)
commit12c5ed61606591a5f22d827f04da390fab5801da (patch)
tree66c404bd4fd30e1cd8cc44ec4df13ef092ee35a7
parent54353dc7b10ef0e266f10c752ac31edda6be7924 (diff)
downloadegit-pde-12c5ed61606591a5f22d827f04da390fab5801da.zip
egit-pde-12c5ed61606591a5f22d827f04da390fab5801da.tar.gz
egit-pde-12c5ed61606591a5f22d827f04da390fab5801da.tar.bz2
Fetch factory does not checkout tag/branch after initial clone of reporefs/changes/34/3934/1
Repo availability needs to be rechecked after cloning and before checkout Bug: 353255 Change-Id: I3d231f42d6604bfeac9b9400b2889014da7e8259
-rw-r--r--org.eclipse.egit.fetchfactory/src/org/eclipse/egit/internal/fetchfactory/GITFetchTaskFactory.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.egit.fetchfactory/src/org/eclipse/egit/internal/fetchfactory/GITFetchTaskFactory.java b/org.eclipse.egit.fetchfactory/src/org/eclipse/egit/internal/fetchfactory/GITFetchTaskFactory.java
index 372c739..370e1a8 100644
--- a/org.eclipse.egit.fetchfactory/src/org/eclipse/egit/internal/fetchfactory/GITFetchTaskFactory.java
+++ b/org.eclipse.egit.fetchfactory/src/org/eclipse/egit/internal/fetchfactory/GITFetchTaskFactory.java
@@ -495,6 +495,10 @@ public class GITFetchTaskFactory implements IFetchFactory {
locationToCheckIfPluginLocal.toString());
script.printAntCallTask(TARGET_CLONE_REPO, true, params);
+ // re-determine availability of local repo (done to avoid unnecessary
+ // Git operations)
+ printAvailableTask(localGitRepo, localGitRepo, script);
+
// checkout the tag
params.clear();
params.put(PROP_GITREPO_LOCAL_PATH, localGitRepo);
@@ -503,10 +507,6 @@ public class GITFetchTaskFactory implements IFetchFactory {
params.put(PROP_FILETOCHECK,
locationToCheckIfPluginLocal.toString());
script.printAntCallTask(TARGET_CHECKOUT_TAG, true, params);
-
- // re-determine availability of local repo (done to avoid unnecessary
- // Git operations)
- printAvailableTask(localGitRepo, localGitRepo, script);
}
private void printConditionEnd(IAntScript script) {