[windows] skip 'go-git does not support file:// URLs on windows'

chmod 755 golden/git
mkgitconfig
mkhomedir golden
mkhomedir

# install fake git
cp golden/git bin

! chezmoi init
chezmoi init --use-builtin-git=true
exists $CHEZMOISOURCEDIR/.git

# create a commit
rm bin/git # disable fake git
[!exec:git] stop
cp golden/.file $CHEZMOISOURCEDIR/dot_file
chezmoi git add dot_file
chezmoi git commit -- --message 'Add dot_file'
cp golden/git bin # restore fake git

# test chezmoi init --use-builtin-git=true
chhome home2/user
chezmoi init --use-builtin-git=true file://$WORK/home/user/.local/share/chezmoi
exists $CHEZMOISOURCEDIR/.git
cmp $CHEZMOISOURCEDIR/dot_file golden/.file

# create a second commit
chhome home/user
rm bin/git # disable fake git
cp golden/.executable $CHEZMOISOURCEDIR/executable_dot_executable
chezmoi git add executable_dot_executable
chezmoi git commit -- --message 'Add executable_dot_executable'
cp golden/git bin # restore fake git

# test chezmoi update --use-builtin-git=true
chhome home2/user
! chezmoi update
chezmoi update --use-builtin-git=true
cmp $CHEZMOISOURCEDIR/executable_dot_executable golden/.executable

-- golden/git --
#!/bin/sh

exit 1
