Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Push: RefSpec deleting reference does not work #466

Closed
@ajnavarro

Description

@ajnavarro

Example:

r, err := git.PlainOpen(path)
	CheckIfError(err)

	Info("git push")
	err = r.Push(&git.PushOptions{
		RefSpecs: []config.RefSpec{
			config.RefSpec(":master"),
		},
	})
	CheckIfError(err)

Obtained error:

error: already up-to-date

Expected message:

$ git push origin :master
To file://path/to/remote/go-git-remote
 - [deleted]         master

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions