progit / progit2

Pro Git 2nd Edition
Other
5.71k stars 1.88k forks source link

Submodules: update `git submodule update --remote` behaviour #1756

Closed phil-blain closed 1 year ago

phil-blain commented 2 years ago

Changes

Since f0a96e8d4c (submodule: fall back to remote's HEAD for missing remote..branch, 2020-06-24), which went into Git 2.28, 'git submodule upadte --remote' does not default to using the 'master' branch of the remote repository, but rather the remote repository's HEAD branch.

Tweak the wording to reflect this behaviour change.

Context

Noticed while re-reading the chapter today.

phil-blain commented 1 year ago

@ben any comments on this one ?:)