obsidiansystems / nix-thunk

seamless management of source dependencies with nix
BSD 3-Clause "New" or "Revised" License
38 stars 10 forks source link

Determine remote using git-config when branch.<name>.merge option is set #35

Closed plt-amy closed 2 years ago

plt-amy commented 2 years ago

Fixes https://github.com/obsidiansystems/obelisk/issues/792: When branch.master.merge is set, for-each-ref doesn't print the remote, but we can piece the remote ref together by looking at $(git config branch.master.remote)/$(git config branch.master.merge).