prevent overlapping repo and work tree in 'got checkout'
commit484d974bd6540464db217df140323b4aab4086c3
authorStefan Sperling <stsp@stsp.name>
Mon, 28 Aug 2023 17:20:33 +0000 (28 17:20 +0000)
committerThomas Adam <thomas@xteddy.org>
Tue, 29 Aug 2023 16:20:40 +0000 (29 17:20 +0100)
tree5df3bb5def2e5327b786caba34fa3575663534cf
parentce775af4ec5a9b9c2ef8353bcc5a14f5ebc29658
prevent overlapping repo and work tree in 'got checkout'

Some people are eager to try to make Got work just like Git by overlaying
the repository and work tree. This causes problems with unveil conflicts
at run-time.
Fail as early as possible during 'got checkout' when users attempt this.

cosmetic tweaks + ok op@
got/got.c
regress/cmdline/checkout.sh