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

closed
Max Rakhimov · 2026-09-28 · 2be9fb242de3 · edited · issue

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.

edits
#commit:2be9fb242de3@gitmsg/pm
labels
kind/bug, priority/normal, area/cli
Comments (1)

↩ Max Rakhimov · 2026-09-28

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.