git commands not running on Windows
まだ誰も着手していません。
評価
調査の方向性
script_manager.lua の 318 行目付近にある get_current_repo_branch から始め、io.popen を通じて git を呼び出している Lua スクリプトを追跡してください。Windows でスペースを含むリポジトリパスをテストし、git status およびその他の影響を受けるコマンドが、ディレクトリを変更せずにリポジトリを正しく解決することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
On windows executing the git command fails from the lua scripts.
It might have something to do with my repo path containing a space. Thought just putting quotes around it does not fix it, there might be strange behaviour in combination with the & concatenator as well.
io.popen("cd " .. repo .. CS .. "git status")
->
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
8,8792 LUA ERROR: script_manager.lua: get_current_repo_branch: 318: no current branch detected in repo_data
In my opinion a better solution would be to use the -C <path> argument of git for all commands instead of changing the directory, and also quoting the repo string:
io.popen("git -C \"" .. repo .. "\" status")
- 主要言語
- Lua
- スター
- 219
- フォーク
- 142
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
darktable-org/lua-scripts のほかの issue
-
dtutils.string: build_substitute_list errors when a metadata field (e.g. rights) has been removed オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
darktable-org/lua-scripts#716 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
darktable-org/lua-scripts#706 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
darktable-org/lua-scripts#627 · コメント 2 件 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
darktable-org/lua-scripts#618 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
darktable-org/lua-scripts#710 · コメント 3 件 ·
darktable-org/lua-scripts の issue をすべて見る
似ている issue
-
OS:Windows
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
api7/lua-resty-saml#62 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
nvim-tree/nvim-tree.lua#3357 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
codymikol/multiverse.nvim#320 ·