# Scope branch refresh fetch to checked-out upstream refspec · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/6708fe996ac144e606abd8645530ea0d7023d42d)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 6708fe996ac144e606abd8645530ea0d7023d42d

Requested commit: 6708fe996ac144e606abd8645530ea0d7023d42d

Commit: 6708fe996ac144e606abd8645530ea0d7023d42d

Tree: afd0d4173be62a5f2f451bbd22c169bd56d9126f

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Scope branch refresh fetch to checked-out upstream refspec

- derive upstream branch from `branch@{upstream}` and guard empty values
- fetch only `+refs/heads/<branch>:refs/remotes/<remote>/<branch>` instead of all remote refs
- add integration test asserting scoped fetch args during `checkoutBranch`

```

## Parents

- [72d7fccc525e0d19dfe975221d086a1b816d2045](https://git.cafe/screen/t3code-personal/commit/72d7fccc525e0d19dfe975221d086a1b816d2045?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/6708fe996ac144e606abd8645530ea0d7023d42d?format=markdown)
