-
Notifications
You must be signed in to change notification settings - Fork 528
"Not a gitflow-enabled repo yet. Please run 'git flow init' first." error message on newly git flow init'ed repo. #372
Comments
I'm also getting that error on Windows using both Git Bash, Cmder or Powershell.
It's happening for both cloned and newly creates repos. Is there any command line option to activate a verbose mode which would provide more info? |
Thanks to a tip from Johannes in the related git for windows project. I was able to debug using the To debug git flow, see C:\Program Files\Git\usr\bin\git-flow
To fix the "not gitflow-enabled repo" bug, edit file C:\Program Files\Git\usr\bin\gitflow-common and add a
My limited tests seem to work - git flow feature start test succeeded after that change, and returned an error after I removed the "gitflow.prefix" lines from my .git/config file (expected behaviour). I'll create a pull request, but the change might end up in a new fork that Johannes is creating. |
Fix "Not a gitflow-enabled repo" bug - issue reported at petervanderdoes#372
Still get the error when finishing a release branch though. If you remove the fix release can be finished again. |
@silasfn What's the output of |
|
... and I updated the PR based on a tip from Johannes.
Removing the |
Fix "Not a gitflow-enabled repo" bug - issue reported at #372
For future reference, I was also having this issue but it was a matter of updating my git version Updated version |
I faced with the same problem: $ git flow init -d
Using default branch names.
$ git flow feature start 123
Fatal: Not a gitflow-enabled repo yet. Please run 'git flow init' first. Environment information: $ uname -a
Linux or-dsktp-arch 4.20.8-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019 x86_64 GNU/Linux
$ git flow version
1.12.0 (AVH Edition)
$ git --version
git version 2.20.1
$ git config --get-regexp gitflow.prefix
gitflow.prefix.feature feature/
gitflow.prefix.release
gitflow.prefix.hotfix
gitflow.prefix.support
gitflow.prefix.versiontag
gitflow.prefix.bugfix I got the reason of error in my case. I am confused about status of current issue and I doubt that my case is related to it. So I made another issue: #402 |
Please follow below steps to remove this issue:
Hope this helps you !!! |
I just ran into this and it seemed to be because the Example fix: $ git config --get-regexp gitflow.branch.master
gitflow.branch.master production
$ git flow bugfix start 3000
Fatal: Not a gitflow-enabled repo yet. Please run 'git flow init' first.
$ git checkout production
branch 'production' set up to track 'origin/production'.
Switched to a new branch 'production'
$ git flow bugfix start 3000
Switched to a new branch 'bugfix/hexmode/3000'
Summary of actions:
- A new branch 'bugfix/hexmode/3000' was created, based on 'master'
- You are now on branch 'bugfix/hexmode/3000'
Now, start committing on your bugfix. When done, use:
git flow bugfix finish 3000 |
Setup
64 bit
defaults?
to the issue you're seeing?
No
Details
Bash, on MINGW64
Minimal, Complete, and Verifiable example
this will help us understand the issue.
What did you expect to occur after running these commands?
After running git flow init, I expected git flow feature start to create a feature branch
What actually happened instead?
I got this error message:
Fatal: Not a gitflow-enabled repo yet. Please run 'git flow init' first.
If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
Seems to occur on any git repository I have cloned, including
git clone --recursive git://github.com/petervanderdoes/gitflow.git
The text was updated successfully, but these errors were encountered: