diff --git a/src/main/java/hudson/plugins/git/GitLastHashProperty.java b/src/main/java/hudson/plugins/git/GitLastHashProperty.java index 64ba31d..714ae43 100644 --- a/src/main/java/hudson/plugins/git/GitLastHashProperty.java +++ b/src/main/java/hudson/plugins/git/GitLastHashProperty.java @@ -29,7 +29,6 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListen if (!(genericScm instanceof GitSCM)) return true; GitSCM scm = (GitSCM)genericScm; - GitSCM scm = (GitSCM) build.getProject().getScm(); GitAPI git = new GitAPI(scm.getDescriptor(), launcher, build.getParent().getWorkspace(), listener); String tipHash = git.revParse(scm.getRemoteBranch());