unable to create new feature branch

Bug #1386483 reported by Mikael Karon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
git-flow (Debian)
Fix Released
Unknown
git-flow (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

when trying to create a feature branch this happends:

mikael@home:~/Workspaces/troopjs/bower_components/troopjs-widget$ git flow feature start featureName
/usr/lib/git-core/git-flow: 301: export: /home/mikael/Workspaces/troopjs/bower_components/troopjs-widget/.git: bad variable name

expected is that the feature branch 'feature/featureName' is created without error.

actual is the error from above.

[this](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763725) looks related.

'lsb_release -rd':
Description: Ubuntu 14.10
Release: 14.10

'apt-cache policy git-flow'
git-flow:
  Installed: 1.8.0-1
  Candidate: 1.8.0-1
  Version table:
 *** 1.8.0-1 0
        500 http://archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
        100 /var/lib/dpkg/status

Tags: patch
Revision history for this message
Mikael Karon (mikael-karon) wrote :
Changed in git-flow (Debian):
status: Unknown → Fix Released
Revision history for this message
Mikael Karon (mikael-karon) wrote :

As a side node. The deb bug does _not_ fix my problem (as you can see I'm already on 1.8)

Revision history for this message
Nick Stoughton (nickstoughton) wrote :

I just ran into this with version 1.8.0-1 on Ubuntu 15.10. It appears to be caused by having CDPATH set ... which in turn will cause the 'cd' command to print the name of the directory it is changing to if it uses it (i.e. if the directory name is not absolute, or does not start with ./)

Unsetting CDPATH before using any git-flow command (including "git flow init") is essential. The attached simple patch seems to do the trick:

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Unset CDPATH patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in git-flow (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.