X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2445B3937431
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1584404650;
	bh=Uo14NOhMVDWnAPhqMLf5TrffFlQaT3EnyYC2xXyWIIo=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=EvIwr/mcwWugKTCinAbWxJzOg8ACbCzg2QOz4K2FMrALw3LcVDGTW/EkUT3kW1LUE
	 yCw5OoLDVGj2nnAPDW8eWRvEgm9kkrS9AFkJblniLN7Ht/6x4y9SCH/cKdBRYeD1f2
	 7K+riZMIg+XMaLdInwdztpRXynxOJqvyy7Qxgvmg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=zwPnjirocnQUgQMhjYMibTFqFr2q3cBZhDtcO+/MS3c=;
 b=fu90YHUnuCpg7e8YxqbvGpGJAzIrSEXBU1k0B1ycYgN1J9xQDuO/QXAW32bhhUBoB1
 OnQVbwuRWlzkLCUIAoPOCpE/ptL98gfvFBXa4/OA242EfE7TzX+AZ72MEuon2UtNJYuR
 +NyLwr/NVqxiZq+1joB6OiIVF1S+71EQsG32fn835h99pSPVW+po7Dyy2mUirPKa7xUj
 PZdkGUxYINlyfTsXR/zWOB1+ux81vTV2QZH95DCqzk9YwblkSKsnUFbTIuaacsYBsZYP
 8FVPRxC9AVAHVlqVoWPMSMuW22BKc46XVXnDXNa+oyNw6awa31ysocaWc2IKP7kjzAMl
 Fnwg==
X-Gm-Message-State: ANhLgQ3nBkydZESwPbMNux/Lxq73EAIcM4uF/Ltj8F/VpTNMm9gujCd7
 D9Y0fTJ8Dj4uQy4zqUpP21TsD2EacshCTzLAzzcVOOsQvug=
X-Google-Smtp-Source: ADFU+vskGMH3QcUqu1ZsbGAufrGuyGA1Ps74rur15NwGZ/aWkBCoAts82wkYl3dUl5PgaYakTWlA61u0V8RtBUHpRoU=
X-Received: by 2002:a9d:21b4:: with SMTP id s49mr1530580otb.294.1584404646470; 
 Mon, 16 Mar 2020 17:24:06 -0700 (PDT)
MIME-Version: 1.0
Date: Mon, 16 Mar 2020 17:23:55 -0700
Message-ID: <CAA5t8Vo_B+yAwTkUsHFFM1oXo8ntvXduyG-ua-H7oGyenTm=ng@mail.gmail.com>
Subject: Conflict between Eclipse JGit and Cygwin HOME
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED, DKIM_VALID,
 DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: Cygwin mailing list <cygwin.cygwin.com>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: David Karr via Cygwin <cygwin@cygwin.com>
Reply-To: David Karr <davidmichaelkarr@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

I've been running Cygwin on my Windows 10 laptop for quite a while.  I use
git in Eclipse and in the shell.

What I'm describing isn't really a bug with Cygwin, but it breaks because
of the interaction with Cygwin, and I'm trying to find out a reasonable way
to fix this.

Over the weekend, I upgraded Windows 10 from 1709 to 1809.  Somehow after
that I have messed up how git is used in Eclipse.

The Eclipse JGit framework figures out where my git config is by checking
things in the following order:

- 1. %HOME% if set,
- 2. %HOMEDRIVE%\%HOMEPATH%, if %HOMEDRIVE% is set,
- 3. %HOMESHARE% if set,
- 4. Java system property "user.home".

The HOMEDRIVE, HOMEPATH, and HOMESHARE variables are set by my work
infrastructure, and I appear to have no control over them. The resulting
%HOMEDRIVE%\%HOMEPATH% doesn't even exist.

The HOME variable is set by Cygwin, apparently.  It is set to
"/home/<myuid>".  I'm guessing that JGit looks at that and can't do
anything with it, so it goes down the list and doesn't find anything
useful. I end up with bad git config values.

The workaround I've figured out is a batch file that sets HOME to the
expected Windows HOME, and then executes its command-line parameters.  I
changed the target property in the Eclipse shortcut to add the full path to
this batch file at the front of the command line, and then I have to find
the eclipse.exe file and get the desktop icon from it.  I'll have to do
this every time I install a new Eclipse distribution.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
