From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 737F6381DCE1 for ; Tue, 17 Mar 2020 00:24:07 +0000 (GMT) Received: by mail-ot1-x32f.google.com with SMTP id t28so17241787ott.5 for ; Mon, 16 Mar 2020 17:24:07 -0700 (PDT) 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 From: David Karr Date: Mon, 16 Mar 2020 17:23:55 -0700 Message-ID: Subject: Conflict between Eclipse JGit and Cygwin HOME To: The Cygwin Mailing List 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2020 00:24:08 -0000 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/". 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.