Actions
Defect #25371
closedGit 2.9 compatibility
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
With git 2.9 I have some problems with redmine git tests.
Failure:
RepositoryGitTest#test_fetch_changesets_from_scratch [redmine/trunk/test/unit/repository_git_test.rb:139]:
Expected: 39
Actual: 38
This patch heals it.
Files
Updated by Toshi MARUYAMA almost 8 years ago
- Tracker changed from Patch to Feature
- Subject changed from RepositoryGitTest#test_fetch_changesets_from_scratch to Git 2.9 compatibility
- Category set to SCM
Updated by Toshi MARUYAMA almost 8 years ago
- Tracker changed from Feature to Defect
Updated by Toshi MARUYAMA almost 8 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Fixed in trunk, 3.3-stable, and 3.2-stable.
Thanks for pointing out.
Updated by Tamara S over 7 years ago
- Status changed from Closed to Reopened
Thank you!
Sorry for reopening (I think, there is no need for new issue), but I have problems with tests (with git 2.9) again.
Failure:
RepositoriesGitControllerTest#test_diff_should_show_filenames [/trunk/test/functional/repositories_git_controller_test.rb:380]:
<test.txt> expected but was
<copied_README>..
Expected 0 to be >= 1.
It seems, that the cure is the same
--- lib/redmine/scm/adapters/git_adapter.rb (revision 16427)
+++ lib/redmine/scm/adapters/git_adapter.rb (working copy)
@ -317,6 +317,7
@
cmd_args << '--no-renames' if self.class.client_version_above?([2, 9])
else
cmd_args << "show" << "--no-color" << identifier_from
+ cmd_args << '--no-renames' if self.class.client_version_above?([2, 9])
end
cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) unless path.empty?
diff = []
Updated by Toshi MARUYAMA over 7 years ago
- Status changed from Reopened to Closed
Fixed. Thanks for pointing out.
Actions