Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git flow / Hg flowでリポジトリを初期化を行うとエラーが発生する。

urochajojo September 30, 2019

以下のエラーが発生しますが、エラーメッセージを調べて見てもヒットしません。

ご存知の方がいらっしゃいましたらご回答をお願いいたします。

・どのプロジェクトで試しても同様のエラーが発生します。

・コミット状況は添付画像のとおりです。

git init -d

/Users/********/.gitflow_export: line 1: export: `3.app/Contents/Resources/bin/getopt': not a valid identifier

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 158: _flags_fatal: command not found

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 273: [: too many arguments

/Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 1024: [: -ne: unary operator expected

flags:WARN /Applications/Sourcetree 3.app/Contents/Resources/git_local/gitflow/gitflow-shFlags: line 740: /Applications/Sourcetree: No such file or directory

flags:FATAL unable to parse provided options with getopt.

Completed with errors, see above

 

スクリーンショット 2019-10-01 01.07.13.png

1 answer

1 accepted

0 votes
Answer accepted
Ai Hirama
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 30, 2019

コミュニティをご利用いただきありがとうございます。

次の投稿を参考に、$PATH環境変数やlaunchd.confの構成情報を確認してみていただけますでしょうか。

urochajojo October 2, 2019

ありがとうございました。解決しました。

おそらくPATHが通っていなかったことが原因かと考えられますが以下の対応で解決しました。

MacのSourcetreeのインストーラを複数回ダウンロードすると前回のインストーラがダウンロードディレクトリに残っているとインストールされるSourcetreeアプリケーションがSourcetree2...3とナンバリングされます。恐らくここでPATHに影響が出たと考えられます。

ダウンロードディレクトリ内のSourcetreeインストーラを全て削除し、再びインストールすることでSourcetreeアプリケーションのナンバリングもされなくなり、Git flow / Hg flowが正常に動作するようになりました。

Ai Hirama
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2019

無事に問題を解決していただけたとのこと、何よりでございます。また何かありましたらお気軽にお知らせください。

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events