]> source.dussan.org Git - jgit.git/commit
RepoCommand: Preserve executable bit in <copyfile> 14/131614/12
authorIvan Frade <ifrade@google.com>
Sat, 27 Oct 2018 00:03:40 +0000 (17:03 -0700)
committerIvan Frade <ifrade@google.com>
Wed, 31 Oct 2018 23:40:12 +0000 (16:40 -0700)
commite64ce267f8b318abe1503f5cf0b71065499b1c87
tree2f4cd8a8b0ac7071eae089a99a9b1313d0c46f30
parentf648a3bd8133a1fe0668a6f969e293a24e85c88d
RepoCommand: Preserve executable bit in <copyfile>

The copyfile entry in the manifest file copies the contents of the file
but doesn't keep the executable flag. This is inconsistent with repo
tool behaviour, plus is natural to expect that the copy of a executable
file is executable.

Transfer the executable bit when copying the file, aligning the
RepoCommand with repo tool and user expectations.

Change-Id: I01b24f482d5939e01d496f032388b3a5c02a912a
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java