Push: a dry run against an empty remote fails in the tags step

MRMax Rakhimov ☑ · 2026-09-28 · 2be9fb242de3 · edited closed

gitsocial push --dry-run against a completely empty remote fails: the tags push (git push --tags --porcelain --dry-run) errors with 'No refs in common and none specified' when the workspace has no tags and the dry run pushed nothing before it. A real push does not hit it, because the code branch lands first. Skip the tags push when the workspace has no tags, or treat that git error as nothing-to-push.

Comments (1)
MR↩

Max Rakhimov · 2026-09-28 · bde16252dd0f

Fixed on main by #commit:96f0cf11916b: the tags step skips when the workspace has no local tags, which is countable offline; the dry run against an empty remote now succeeds, pinned by TestPushTags_noTagsSkipsEmptyRemote. Review found no issues.