diff options
author | Sven Strickroth <email@cs-ware.de> | 2013-03-08 01:15:40 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-03-26 01:03:16 +0400 |
commit | b8acb775e25c76f07dac8855ad0a88b37f7b2f17 (patch) | |
tree | f7e8d173813745f2a56c6078897fb9aeb9cad479 /tests-clar/status | |
parent | 9733e80c2ae7517f44c658cd2914d99454470dd1 (diff) |
Added some tests for issue #1397
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'tests-clar/status')
-rw-r--r-- | tests-clar/status/worktree.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests-clar/status/worktree.c b/tests-clar/status/worktree.c index 5b11d1f82..61f0982cd 100644 --- a/tests-clar/status/worktree.c +++ b/tests-clar/status/worktree.c @@ -541,6 +541,21 @@ void test_status_worktree__line_endings_dont_count_as_changes_with_autocrlf(void cl_assert_equal_i(GIT_STATUS_CURRENT, status); } +void test_status_worktree__line_endings_dont_count_as_changes_with_autocrlf_issue_1397(void) +{ + git_repository *repo = cl_git_sandbox_init("issue_1397"); + git_config *config; + unsigned int status; + + cl_git_pass(git_repository_config(&config, repo)); + cl_git_pass(git_config_set_bool(config, "core.autocrlf", true)); + git_config_free(config); + + cl_git_pass(git_status_file(&status, repo, "crlf_file.txt")); + + cl_assert_equal_i(GIT_STATUS_CURRENT, status); +} + void test_status_worktree__conflicted_item(void) { git_repository *repo = cl_git_sandbox_init("status"); |