jx2lee commented on code in PR #46226:
URL: https://github.com/apache/airflow/pull/46226#discussion_r1933362774


##########
airflow/dag_processing/bundles/git.py:
##########
@@ -236,6 +238,8 @@ def view_url(self, version: str | None = None) -> str | 
None:
             return None
         if url.startswith("git@"):
             url = self._convert_git_ssh_url_to_https(url)
+        if url.endswith(".git"):
+            url = url[:-4]

Review Comment:
   imo. I don't think len is more meaningful. `.git` format won't change and 
might even seem more complex.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to