# git: Fix remote URL parsing for partial clones \(\#63331\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4b3ef3e45a64f30525324ef8d0d60c1adca2cd7a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4b3ef3e45a64f30525324ef8d0d60c1adca2cd7a

Requested commit: 4b3ef3e45a64f30525324ef8d0d60c1adca2cd7a

Commit: 4b3ef3e45a64f30525324ef8d0d60c1adca2cd7a

Tree: 754eab3a425e98c6edc8cdb17a1dae3a39475b47

Author: Smit Barmase

Committer: GitHub

## Message

````
git: Fix remote URL parsing for partial clones (#63331)

Git adds the clone filter after `(fetch)` in `git remote -v` for partial
clones. Zed expected `(fetch)` at the end of the line, so it dropped
these remotes. This fixes that.

**Before:**

Only regular fetch entries were recognized:

```text
origin  https://github.com/zed-industries/zed.git (fetch)
```

**After:**

Fetch entries containing partial-clone filter metadata are also
recognized:
 
```text
origin  https://github.com/zed-industries/zed.git (fetch) [blob:none]
```

Release Notes:

- Fixed Zed failing to recognize Git remotes in partial clones.
````

## Parents

- [c90f1fedc9ecaff4ace6750adb276089da2a9eeb](https://git.cafe/gitcafe/zed/commit/c90f1fedc9ecaff4ace6750adb276089da2a9eeb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4b3ef3e45a64f30525324ef8d0d60c1adca2cd7a?format=markdown)
