Re: [PATCH 2/7] rebase -i: don't error out if $state_dir already exists
- From
Martin von Zweigbergk <martinvonz@gmail.com>
- Date
- Apr 23, 2013, 14:45 UTC
- Message-ID
- <CANiSa6gMA8ZHNjaGu+hG4HxUCa5g+s00E=kGMyqeSv5NNRCCeQ@mail.gmail.com>
- In-Reply-To
- <1366725724-1016-3-git-send-email-artagnon@gmail.com>
On Tue, Apr 23, 2013 at 7:01 AM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> Practically speaking, the only reason why a `mkdir $state_dir` would > fail is because $state_dir already exists.
Would we ever get to this point in the code if it already exists?
Also, I had the feeling that the check it might fail if the user does not have permissions to create the directory. Is there always something else that will fail first?