Skip to content

Git: fails to create a permalink to the line #41995

@lesha-co

Description

@lesha-co

Summary

Running editor::CopyPermalinkToLine doesn't work

Description

Steps to trigger the problem:

  1. Open a git repository with a following origin URL: ssh://[email protected]:1234/xx/repo.git
  2. Open a file, put a cursor somewhere
  3. Run "editor: Copy permalink to line"

Expected Behavior:
Permalink in clipboard. Should be something like

https://bitbucket.company.com/projects/XX/repos/repo/browse/{relative file path}?at=refs%2Fheads%2Fbranch#10

Actual Behavior:
error
Image

and a log message:

ERROR [editor::editor] parsing Git remote URL

Zed Version and System Specs

Zed: v0.210.4 (Zed)
OS: Windows 10.0.26100
Memory: 31.4 GiB
Architecture: x86_64
GPU: Intel(R) Graphics || Intel Corporation || 32.0.101.6637

Metadata

Metadata

Assignees

No one assigned

    Labels

    gitGit integration feedback

    Type

    Projects

    Status

    Completed by Zed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions