sam: Fix includeIf trailing slash

This isn't a new issue; not even to me!

https://news.ycombinator.com/item?id=38946967

> chandlerswift on Jan 11, 2024 | on: Conditional Git Configuration
>
> I'd attempted to configure this some time back, but never gotten it
> working, and this was the kick in the pants I needed to finally get
> it working!
>
> In case anyone is stuck in the same way that I was, the trailing
> slash at the end (which I had previously omitted, not realizing) is
> necessary for this to work. The docs[0] mention this, but I'd managed
> to repeatedly miss it:
>
> > If the pattern ends with /, * will be automatically added. For
> > example, the pattern foo/ becomes foo/*. In other words, it matches
> > "foo" and everything inside, recursively.
>
> [0]: https://git-scm.com/docs/git-config#Documentation/git-config...

:doh:
This commit is contained in:
Chandler Swift 2025-07-15 17:08:18 -05:00
parent d49871079f
commit f908b10435
No known key found for this signature in database
GPG key ID: B123483B24A4D579

View file

@ -172,7 +172,7 @@
contents.core.sshCommand = "ssh -i ~/.ssh/github-vue"; contents.core.sshCommand = "ssh -i ~/.ssh/github-vue";
} }
{ {
condition = "gitdir:/home/chandler/projects/machine-config"; condition = "gitdir:/home/chandler/projects/machine-config/";
contents.core.sshCommand = "ssh -i ~/.ssh/machine-config-deploy-key"; contents.core.sshCommand = "ssh -i ~/.ssh/machine-config-deploy-key";
} }
]; ];