Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Mar 9, 2023
1 parent 263ca1c commit 4dfe7b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
package org.eclipse.che.api.factory.server.git.ssh;

import static org.eclipse.che.api.factory.shared.Constants.CURRENT_VERSION;
import static org.eclipse.che.api.factory.shared-am.Constants.CURRENT_VERSION;
import static org.eclipse.che.api.factory.shared.Constants.URL_PARAMETER_NAME;
import static org.eclipse.che.dto.server.DtoFactory.newDto;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public boolean accept(@NotNull String repository) {
return gitSshURLParser.isValid(repository);
}

/**
* There is no way to get a file content from a git repository via ssh protocol. So this method
* always returns an empty string. It allows to start a workspace from an empty devfile.
*/
@Override
public String fileContent(@NotNull String repository, @NotNull String filePath) {
return "";
Expand Down

0 comments on commit 4dfe7b0

Please sign in to comment.