nvie / gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.
http://nvie.com/posts/a-successful-git-branching-model/
Other
26.6k stars 2.66k forks source link

git-flow with busybox getopt does not work #6411

Closed tafli closed 5 years ago

tafli commented 6 years ago

When I try using git-flow within a alpine linux installation, git-flow cannot determine the getopt version: $ git flow init -d flags:FATAL unable to determine getopt version

getopt however is installed: getopt -? getopt: unrecognized option: ? BusyBox v1.27.2 (2018-01-29 15:48:57 GMT) multi-call binary.

Didn't find out, how to replace busybox getopt with GNUs linux-utils.

tafli commented 6 years ago

The script for parsing the arguments shflags checks for the getopt version with getopt >/dev/null 2>&1. The version from busybox does return a 1 and is therefore not recognized by shflags.

davidenke commented 5 years ago

The script for parsing the arguments shflags checks for the getopt version with getopt >/dev/null 2>&1. The version from busybox does return a 1 and is therefore not recognized by shflags.

@tafli, so how did you fix it, then?

tafli commented 5 years ago

Actually I didn't fix it and stopped the project for other reasons. Thx.