Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

patchmode failed when enabled git-config diff.noprefix option #258

Open
kuuote opened this issue Mar 17, 2020 · 1 comment
Open

patchmode failed when enabled git-config diff.noprefix option #258

kuuote opened this issue Mar 17, 2020 · 1 comment

Comments

@kuuote
Copy link

kuuote commented Mar 17, 2020

  • 問題
    git側でdiff.noprefixオプションが有効になっているときにGina patchでインデックス側に書き込みを行おうとすると失敗します

  • 再現手順

#!/bin/sh
git config --global diff.noprefix true
rm -rf foo
mkdir foo
cd foo
git init
echo hoge > bar
git add bar
git commit -m hoge
echo piyo >> bar

上記のスクリプトを実行した上でGina patchよりpiyoの部分をコミットしようとするとエラーが出力されます

[gina] Fail: env GIT_TERMINAL_PROMPT=0 git --no-pager -c core.editor=false -c color.status=always -C /home/arch/foo apply --verbose --cached -- /tmp/nvimhyZu8V/2
[gina] Checking patch nvimhyZu8V/1.index => nvimhyZu8V/1.buffer...
[gina] error: nvimhyZu8V/1.index: does not exist in index
  • 使用環境

Vim 8.2.390

git version 2.25.1

gina.vim dd5340e

@lambdalisue
Copy link
Owner

hum... It's a kind expected behavior but I'm welcome to see PRs to fix this behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants