Giter Club home page Giter Club logo

Comments (10)

nvie avatar nvie commented on June 5, 2024

Closing this one now, since it does not apply anymore to the current HEAD. If it happens again in the future, we can always reopen this ticket.

from gitflow.

potomak avatar potomak commented on June 5, 2024

I'm having the same issue on Ubuntu 11.10

$ git flow feature finish api_clients
Switched to branch 'develop'
Auto-merging db/schema.rb
CONFLICT (content): Merge conflict in db/schema.rb
Automatic merge failed; fix conflicts and then commit the result.
mkdir: cannot create directory `/.gitflow': Permission denied
/usr/lib/git-core/git-flow: 1: cannot create /.gitflow/MERGE_BASE: Directory nonexistent

Solution: create .gitflow directory

from gitflow.

cjbottaro avatar cjbottaro commented on June 5, 2024

I'm getting this on OS X 10.7.

$ git flow feature finish scheduled-matches
Switched to branch 'develop'
Auto-merging test/factories/question.rb
Auto-merging config/deploy.rb
CONFLICT (content): Merge conflict in config/deploy.rb
Automatic merge failed; fix conflicts and then commit the result.
mkdir: /.gitflow: Permission denied
/usr/local/bin/git-flow-feature: line 320: /.gitflow/MERGE_BASE: No such file or directory

Git-flow installed by brew:

$ brew info git-flow
git-flow 0.4.1
https://github.com/nvie/gitflow
/usr/local/Cellar/git-flow/0.4.1 (13 files, 132K)
https://github.com/mxcl/homebrew/commits/master/Library/Formula/git-flow.rb

from gitflow.

fbjork avatar fbjork commented on June 5, 2024

So what's the fix for this?

from gitflow.

miry avatar miry commented on June 5, 2024

I have same issue too.

 git flow feature finish 5409_cycle_option_support                                                                                                                                                                              [1m]
Switched to branch 'develop'
Auto-merging spec/models/user_spec.rb
CONFLICT (content): Merge conflict in spec/models/user_spec.rb
Auto-merging app/models/user.rb
Automatic merge failed; fix conflicts and then commit the result.
mkdir: /.gitflow: Permission denied
/usr/local/bin/git-flow-feature: line 320: /.gitflow/MERGE_BASE: No such file or directory
There were merge conflicts. To resolve the merge conflict manually, use:
    git mergetool
    git commit
You can then complete the finish by running it again:
    git flow feature finish 5409_cycle_option_support

from gitflow.

petervanderdoes avatar petervanderdoes commented on June 5, 2024

@miry Just a few questions:

What's the full path of your repository?
What's the outcome of the command git rev-parse --git-dir?
What OS are you using?

Currently it looks your are having your repo on the root of your drive.

from gitflow.

miry avatar miry commented on June 5, 2024

What's the full path of your repository?

/Users/miry/projects/jetthoughts/alba/beta4

What's the outcome of the command git rev-parse --git-dir?

.git

What OS are you using?

Mac OS Lion

I have installed via brew. And this error always come when I have conflicts.

from gitflow.

miry avatar miry commented on June 5, 2024

I think trouble that: $DOT_GIT_DIR is empty. In the file /usr/local/bin/git-flow-feature

because: git rev-parse --git-dir >/dev/null 2>&1 return empty in the file gitflow-common

https://github.com/nvie/gitflow/blob/0.4.1/gitflow-common#L184

from gitflow.

miry avatar miry commented on June 5, 2024

I used version: git-flow/0.4.1

from gitflow.

petervanderdoes avatar petervanderdoes commented on June 5, 2024

That line is wrong, it should read git rev-parse --git-dir 2>/dev/null
It's a bug that existed. If you want to use my fork you can follow the instructions on the wiki page

from gitflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.