Hide $GIT_DIR and friends from JGit
commit45535c1540457b2cd490b4ab9f1f14f74d4c49a8
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 24 Jul 2018 13:40:07 +0000 (24 15:40 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 24 Jul 2018 13:40:07 +0000 (24 15:40 +0200)
tree3d79212ca3c2f63a5e91df29b150cacf6769ccc6
parent5e5aa48aa2a46b9eefbf7029c54b1035465825d4
Hide $GIT_DIR and friends from JGit

Register an Eclipse-specific SystemReader that hides the git
repository location environment variables. Otherwise JGit may
try to use them when creating repositories (init, clone), which
gives very surprising results if a user creates several repositories
and these environment variables are defined for the Eclipse process.

Bug: 537331
Change-Id: I20639f5a4fbd65f14ce39283e19a35ccf127c905
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java