Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This file documents all notable changes to https://github.com/devonfw/IDEasy[IDE
Release with new features and bugfixes:

* https://github.com/devonfw/IDEasy/issues/1552[#1552]: Add Commandlet to fix TLS issue
* https://github.com/devonfw/IDEasy/issues/1799[#1799]: Add support for file URL in GitUrl validation for local development
* https://github.com/devonfw/IDEasy/issues/1760[#1760]: Accept empty input for single option

The full list of changes for this release can be found in https://github.com/devonfw/IDEasy/milestone/43?closed=1[milestone 2026.04.002].
Expand Down
4 changes: 2 additions & 2 deletions cli/src/main/java/com/devonfw/tools/ide/git/GitUrl.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public String getProjectName() {
}

/**
* @return {@code true} if the URL starts with http://, https://, ssh:// or git@ - otherwise returns {@code false}.
* @return {@code true} if the URL starts with http://, https://, ssh://, git@ or file:// - otherwise returns {@code false}.
*/
public boolean isValid() {
if (url == null || url.isBlank()) {
return false;
}
return url.startsWith("http://") || url.startsWith("https://") || url.startsWith("ssh://") || url.startsWith("git@");
return url.startsWith("http://") || url.startsWith("https://") || url.startsWith("ssh://") || url.startsWith("git@") || url.startsWith("file://");
}

@Override
Expand Down
Loading