Conversation

Jarkko Sakkinen

a cosmetic #bug in #git:

suppilovahvero in keystone on  jarkkojs/spirs via △ v3.25.1
$ git add ../keystone/patches/linux/linux.vtpm.patch
fatal: ../keystone/patches/linux/linux.vtpm.patch: '../keystone/patches/linux/linux.vtpm.patch' is outside repository at '/home/jarkko/work/nisec/spirs/keystone'
1
0
0

or more like a corner case:

  1. PWD is inside the repository.
  2. The relative path starts outside.
1
0
0

Git should probably canocalize patch always before acting on it with realpath(). That would remove such corner cases. https://man7.org/linux/man-pages/man3/realpath.3.html

0
0
0