Skip to content

Commit

Permalink
fixup! CHE-521: Perform git init command without initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Vinokur committed Feb 23, 2016
1 parent 7520231 commit 67c6440
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.eclipse.che.api.git.gwt.client.GitServiceClient;
import org.eclipse.che.api.git.shared.LogResponse;
import org.eclipse.che.api.git.shared.Revision;
import org.eclipse.che.api.workspace.shared.dto.ProjectConfigDto;
import org.eclipse.che.ide.api.app.AppContext;
import org.eclipse.che.ide.api.notification.NotificationManager;
import org.eclipse.che.ide.api.project.node.HasStorablePath;
Expand Down Expand Up @@ -276,8 +277,9 @@ public void onValueChanged() {

@Override
public void setAmendCommitMessage() {
final ProjectConfigDto project = appContext.getCurrentProject().getRootProject();
final Unmarshallable<LogResponse> unmarshall = dtoUnmarshallerFactory.newUnmarshaller(LogResponse.class);
this.service.log(workspaceId, appContext.getCurrentProject().getRootProject(), null, false,
this.service.log(workspaceId, project, null, false,
new AsyncRequestCallback<LogResponse>(unmarshall) {
@Override
protected void onSuccess(final LogResponse result) {
Expand All @@ -302,7 +304,7 @@ protected void onFailure(final Throwable exception) {
} else {
Log.warn(CommitPresenter.class, "Git log failed", exception);
CommitPresenter.this.view.setMessage("");
notificationManager.notify(constant.logFailed(), FAIL, false);
notificationManager.notify(constant.logFailed(), FAIL, false, project);
}
}
});
Expand Down

0 comments on commit 67c6440

Please sign in to comment.