delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org E6D083942005 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1584452723; | |
bh=04QsJ/2uxXOjWWI5XDtkMJgnNIYX6F6D97M2n4ELegU=; | |
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: | |
From; | |
b=hoaEczCkYw3r736kEXNRcSn/aKdyVTyQim30i3fGZnDUYGfvN4Ytldl2B5sRkJQpp | |
vXZwzFjjSK2Luvwh2EILgWG/pKnpsx13RU93qcm8OzfnGPIw89S6gL65wzvW+6jsvF | |
qF8pDl8Bs95KXSgPPdKnMMWlahqhQJxZKmxt5f2g= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT 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:references:in-reply-to:from:date | |
:message-id:subject:to; | |
bh=5Qp0thV7K4HCUwfLTOgLgmI9AWZ3lr3Mud2hgGrgllI=; | |
b=nH4OequAF53xb+zu4WdP3GRFj/NnRTN9Dc3EFuwvBbW+QuBOE2/wc51QYKMk8dZJxA | |
MWRI5vvng5E8YsUgAHo3QN+JOobU0c+qKEHR0HNwdC4h3BczN7ElS0K3YP1LAhDQfdKR | |
hHo1pJFA8BGrz8wpx8SNrsCzWQYDS1Bnnh4mz+rvXZgCOXvX+aciPXkkgbDLSgYAo9nh | |
bilL+Z4r91A4JWzG5bpKsjgaXjBpvqfrw/9O3WR7W/06FyUYCxbdHSd8JMKMIjj11jwf | |
3wCCVvAyucIEpvT9r2yT1TINrvQjXehyphYzKh8q2zbSljrAS2/jNInVzr0i5SDX5yy1 | |
7MRw== | |
X-Gm-Message-State: | ANhLgQ3mGykHnbhPU/T+CTMgFqnWxsxuz9TypXIYnGnp0AWgF6jDhDvE |
HM+fMnf34BSoahNxd/BhkD2QTY59JcbresaJwwttkrA3 | |
X-Google-Smtp-Source: | ADFU+vugrqaUbQANpVNEzEjjK7iKYR/ETTzXTsLx7cobtKWgNLdh898+VlbTtgke06bKmPL8tZH7S+/i3HCDCqKn4EU= |
X-Received: | by 2002:aca:4fc7:: with SMTP id d190mr3606693oib.100.1584452719730; |
Tue, 17 Mar 2020 06:45:19 -0700 (PDT) | |
MIME-Version: | 1.0 |
References: | <CAA5t8Vo_B+yAwTkUsHFFM1oXo8ntvXduyG-ua-H7oGyenTm=ng AT mail DOT gmail DOT com> |
<528226091 DOT 20200317040308 AT yandex DOT ru> | |
<ea2832cb-21e0-e9cc-1cd1-2328030b65c4 AT SystematicSw DOT ab DOT ca> | |
In-Reply-To: | <ea2832cb-21e0-e9cc-1cd1-2328030b65c4@SystematicSw.ab.ca> |
Date: | Tue, 17 Mar 2020 06:45:07 -0700 |
Message-ID: | <CAA5t8VoxA680p7xpOm+GgK5ZejiTuY-RXzuCpc_6TX5H7qAK3Q@mail.gmail.com> |
Subject: | Re: Conflict between Eclipse JGit and Cygwin HOME |
To: | The Cygwin Mailing List <cygwin AT cygwin DOT 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 AT cygwin DOT 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 AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <http://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | David Karr via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | David Karr <davidmichaelkarr AT gmail DOT com> |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
On Mon, Mar 16, 2020 at 11:20 PM Brian Inglis wrote: > On 2020-03-16 19:03, Andrey Repin wrote: > > Greetings, David Karr! > > > >> 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. > > > > It should, that's nonsense. File an issue with your infrastructure team. > > > >> The HOME variable is set by Cygwin, apparently. > > > > No, it only set HOME if it is not set yet, and even then only for login > > shells. > > > >> It is set to "/home/<myuid>". > > > > What "myid" is supposed to mean? HOME is set to /home/$USER by default, > but > > can be overridden with proper nsswitch configuration. > > > >> 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. > > > > Just install Git for Windows, but don't add it to %PATH% in any way, > shape or > > form. Then configure Eclipse to use that git instead of Cygwin one. > > > >> 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. > > > > Start by solving the issue from its head. > > Fix your %HOMEDRIVE%/%HOMEPATH%/%HOMESHARE%, configure your nsswitch to > point > > to an existing profile path. > > You problem seems to be with your Windows network profile and Windows > programs, > nothing to do with Cygwin. > Fixing the former will probably fix the latter. > If it wasn't obvious, I'm trying to find a solution, not assign blame. Of course it has "something to do with Cygwin", because I'm using it, and Cygwin and WIndows are using a shared resource, the "HOME" variable. Cygwin and Windows try to use it for different purposes. There's nothing I can do about the "Windows network profile". > But if your work infrastructure does not yet support W10 1809 (do you > really > mean that release, not the current 1909 release?) you should not have > upgraded, > and any breakage is down to you. > Again, you took this as me trying to assign blame, which is pointless. Yes, I meant 1809, and although I performed the upgrade manually, it would have been done automatically in the near future if I hadn't, so there was no choice there. > For Cygwin options see: > > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-desc Yes, I've seen that, and considered my options there, but I don't think that will address this situation. The problem is the contents of the "HOME" variable. It doesn't matter where my Cygwin HOME directory actually resides. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |