Skip to content

Commit

Permalink
Merge pull request #7522 from mih/bf-7507
Browse files Browse the repository at this point in the history
Robustify update target detection for adjusted mode datasets
  • Loading branch information
yarikoptic committed Oct 30, 2023
2 parents 97ae4c3 + 1d52d32 commit 11501cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog.d/20231025_194118_michael.hanke_bf_7507.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### 🐛 Bug Fixes

- Update target detection for adjusted mode datasets has been improved.
Fixes [#7507](https://github.com/datalad/datalad/issues/7507) via
[PR #7522](https://github.com/datalad/datalad/pull/7522)
(by [@mih](https://github.com/mih))
2 changes: 1 addition & 1 deletion datalad/distribution/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _choose_update_target(repo, branch, remote, cfg_remote):
# branch.*.merge value, but that assumes a value for remote.*.fetch.
target = repo.call_git_oneline(
["rev-parse", "--symbolic-full-name", "--abbrev-ref=strict",
"@{upstream}"],
f"{repo.get_corresponding_branch(branch) or ''}" "@{upstream}"],
read_only=True)
elif branch:
remote_branch = "{}/{}".format(remote, branch)
Expand Down

0 comments on commit 11501cf

Please sign in to comment.