Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Feature/hotfixes must have commits #8

Closed
wants to merge 2 commits into from
Closed

Feature/hotfixes must have commits #8

wants to merge 2 commits into from

Conversation

baby-gnu
Copy link

@baby-gnu baby-gnu commented Jul 7, 2012

Do not finish hotfixes if they have no commits

A hotfix branch must have some commits and be ahead of master.

  • git-flow-hotfix (cmd_finish): Compare states of the hotfix and
    the master branches.

The "git for-each-ref" command will display all local branches with
"refs/heads/" argument and all branches on all remote with
"refs/remotes/".

* gitflow-common (git_local_branch_exists): Check if first argument is
  not null.
  (git_remote_branch_exists): Ditoo.
  (git_tag_exists): Ditoo.
  (require_branch): Pass first argument to git_branch_exists().
A hotfix branch must have some commits and be ahead of master.

* git-flow-hotfix (cmd_finish): Compare states of the hotfix and
  the master branches.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants