X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=mgRsPH77GmJYDVDcN4VYtRmv52LAB LxkBS6PILhnDFWE4sJNPXj8kEwv7Gyu5dZd1kB7UNsOyguPvkfLURMvPl61KPSD5 GVY10wNIoyPjh58UE5kqrb+hyDgxTZ1XF8YFXLphlLvG+nePd6/mG/3cAO0H9lDE 5nGzZpPX5Tc384= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=TEVJ68G6PAu/FCzGZgClv/ljzR0=; b=Yr+ L8ixew0aXfwy4HIaBL07i/vg9L7Y7sHpCQsUX/EaYfDFZwSMEmBuTIQmRvN5EnNO CciAd+s+/FDOYR29174oXz2DqP34wS2rLT55589y+F7xfdpbw5o5xsGxT1gkNGe/ UDUgWVdfbz6xY0Tc5NAIHwH9DyAMKl0V92Pqg4bA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.5 required=5.0 tests=BAYES_50,CYGWIN_OWNER_BODY,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*me, NPM, bashrc, $var X-HELO: na01-bn1-obe.outbound.protection.outlook.com From: Brian Clifton To: "cygwin AT cygwin DOT com" Subject: Re: git and absolute Windows-style paths Date: Wed, 20 Apr 2016 16:10:29 +0000 Message-ID: References: <57169662 DOT 9060503 AT gmail DOT com> <5717A3EF DOT 6030407 AT gmail DOT com>,<5717A5C6 DOT 5060001 AT cs DOT umass DOT edu> In-Reply-To: <5717A5C6.5060001@cs.umass.edu> authentication-results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=clifton.me; x-ms-office365-filtering-correlation-id: 25592c34-54a1-48e6-19a7-08d369364b3c x-microsoft-exchange-diagnostics: 1;BLUPR03MB230;5:ZgiHcV2IR0qBfuIAVW49tbEBidMXYw7EelKH1JopBVrkYw9YyzMmVr4ZMfmN7j7FwGZQQ8/Q/DccU9SFzedfx41dM9UwoiunRX2HthxqhLpzUNpmgMELoXpVL/d+FLqAyDR3niXNQ1gxzZx26PuN1w==;24:RvJDU34YLw/yzXOrCg6u7j4iVWTOIR3AK+UHq5Z6Pmo4SnDSWiBuIP8m0n55gd5jTTsBosNDQUzeDX0TuNoTK1SB2lfVCEEjJtX6AuS2Yik= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB230; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(9101521026)(6040130)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041046)(6043046);SRVR:BLUPR03MB230;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB230; x-forefront-prvs: 0918748D70 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(51444003)(377454003)(2351001)(5008740100001)(76576001)(102836003)(10400500002)(3280700002)(15395725005)(87936001)(76176999)(9686002)(19580405001)(5640700001)(2501003)(15975445007)(3846002)(50986999)(2906002)(586003)(19580395003)(6116002)(66066001)(81166005)(54356999)(5003600100002)(2900100001)(450100001)(106116001)(33656002)(92566002)(74316001)(99286002)(110136002)(11100500001)(2950100001)(189998001)(86362001)(1220700001)(122556002)(5004730100002)(93886004)(5002640100001)(74482002)(3660700001)(1096002)(107886002)(3900700001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB230;H:BLUPR03MB230.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-OriginatorOrg: clifton.me X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2016 16:10:29.8412 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8bdfec6b-c71e-4ab9-8b6b-9de7cf58a5f5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB230 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u3KGBO1T030706 I agree completely- Faking out git by wrapping it as a function in your .bashrc would be an ideal approach. I was the person championing that PR which got rejected, unfortunately. The NPM folks were recommending to use mingw which *is* supported... but I haven't seen any updates to that project since 2013... and I prefer the approach Cygwin takes :) Eliot, I would be all about taking you up on fixing that psuedo-code example I shared earlier. I have a lot to learn about shell scripting and while I am sure I can figure it out, having help would be extremely appreciated :) The example I shared in my intro thread: ##### function git { for var in "$@" do if [[ $var == *":\\"* ]]; then $var="$(cygpath $var)" #this doesn't work, but the idea is to do something like this fi done command git "$@" } ##### ________________________________________ From: cygwin-owner AT cygwin DOT com on behalf of Eliot Moss Sent: Wednesday, April 20, 2016 8:52 AM To: cygwin AT cygwin DOT com Subject: Re: git and absolute Windows-style paths On 4/20/2016 11:44 AM, silverwind wrote: > Hey, > >> Does it work if you do: >> >> git add c:/test/file > > Nope, won't work either. No file is added, exit code 0 is given. > > > I can't immediately see what's going wrong, so I'm going to report this upstream. > > Thanks. I came upon this issue through npm which is using these Windows paths for certain git > operations. Unfortunately, The npm team is very reluctant when it comes to merging Cygwin-specific > patches, so chances of landing a fix on their side are rather slim. > > Is there a public repository for the git package used by Cygwin? I think that tackling this with a script/function is a better approach ... Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple