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:subject:to:references:reply-to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Ob7CH0slUJsr4LxK a5mBiai60vzuY8pOWaSqw0d7DFcABmmXi+49KLVQYw/LWfoa5oCasoJQbz2/XfN4 ZgWlyUGFAtzTyre+DcNv4ZWV7UBBhLoTHGXrIiMJkEy/tUCoUa4N7DeGrWIZLRzE W+MHCF7BCkrHTwb0cLOesVCzEpk= 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:subject:to:references:reply-to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=tE5m+QrQBY/L7d2maiKTKr z6x88=; b=ldnG+sQmLaxFkjImPl+GHbVW+WDS1nzuR9aAf8oOW9ny915rZdEVTc ucd6o/cdZFg2rMXupqx8wao3tq2N2gXvU+RB+sUp6LJTEpPvQ0mNVRkRVExS7lpO I2aq3zXahxmN8sZtM/uyxAWktwCNhv5hnQn5q4XFli9qT6FiN8p9Y= 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: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=WAS, cooperate, HContent-Transfer-Encoding:8bit X-HELO: mail-it0-f54.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:reply-to:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mSHWxtcw+o4VcDC410vjrFEpgUgAHvjMC2Y3ggAYkgg=; b=pPYNKiAWHqaQwpTKVtGNDsBRcGei08hAc24WshD7xS6L9NG2R89jci8SnBjweJsRYs YLr+ZpqeUbSuc63cRBIGYZHjj4H+2nMhgt2bzEFCIcoP6KxBxCQCwzEjDJTxBT67853r OR0qED282d6Pu31qQePStiTTRrcO7Kxj9Ud9rcK9vy2M8zD1gyMnHK1K0jKqM8m50hiu urhaYIKtrrq0FUghdgpCsBNMhaPgmBt27R2jJnfkq2nPgirlvEXwA2k+JOSOQ0izkg3g ehUaitKk57rREuQn6TqbgmBSfm16n0545I6AKzQPUjZmk6aAMmgGs3cB89hxGox1bdsI VBtA== X-Gm-Message-State: AElRT7Hk22KzaIbrTTwNQk3H70b54L87Ukq07XHAcALc05C0gsz9A13A Zgb3WAZhhuRDfTkU00jE0w5EDg== X-Google-Smtp-Source: AG47ELuEUn8H7QRgGHkv41ESk8hDBsXyp+FRTu+tz9/yDo+jYAXJVImDJXur2GFy6AdEbAxlsXetrA== X-Received: by 2002:a24:d309:: with SMTP id n9-v6mr4448468itg.0.1521640162090; Wed, 21 Mar 2018 06:49:22 -0700 (PDT) Subject: Re: git checkout altering mode of file [WAS: umask not working?] To: cygwin AT cygwin DOT com References: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk> <1941712084 DOT 20180319200734 AT yandex DOT ru> Reply-To: cygwin AT cygwin DOT com From: cyg Simple Message-ID: Date: Wed, 21 Mar 2018 09:49:19 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 3/21/2018 6:27 AM, David Allsopp wrote: > > "umask is not a good idea in Windows" - where's that come from? (In the actual scenario where I'm being bitten by this, it's because a git checkout is altering files which were 644 to be 664, so whether it's precisely umask or not, the *change* of permissions is the problem). > Git will also store the mode of the file. Are you sure the file stored within git doesn't have the 664 mode? The other problems are mixing the various git operators with Cygwin git. For instance the embedded git of Netbeans doesn't cooperate well with Cygwin git because of subtle differences in the native versus Cygwin. -- cyg 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