-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1448 from twpayne/source-dir-not-root
Detect when the source directory is already in a git working copy
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,13 @@ chezmoi init --config-path=$HOME/.chezmoi.toml file://$WORK/home/user/.local/sha | |
cmp $HOME/.chezmoi.toml golden/chezmoi.toml | ||
! exists $CHEZMOICONFIGDIR/chezmoi.toml | ||
|
||
# test chezmoi init when the source dir is already in a git working copy | ||
chhome home11/user | ||
mkgitconfig | ||
exec git init $HOME/.local/share | ||
chezmoi init | ||
! exists $CHEZMOISOURCEDIR/.git | ||
|
||
-- golden/chezmoi.toml -- | ||
[data] | ||
email = "[email protected]" | ||
|