Hi David,

It looks to me as if you have managed to somehow alter the permissions of your Firedrake git repository. For example this might have happened if you made the mistake of running firedrake-update under sudo. If you understand how Unix permissions work, you can change the permissions or ownership back to the correct ones for your user and all should be well. Otherwise it might be easier to just reinstall Firedrake.

Regards.

David

On Tue, 24 Jan 2017 at 15:37 Angwenyi David <kipkoej@gmail.com> wrote:
Hi Firedrakers,

I am trying to update firedrake on mac. The following error turns out.

error: cannot open .git/FETCH_HEAD: Permission denied

Traceback (most recent call last):
  File "/Users/master/firedrake/bin/firedrake-update", line 957, in <module>
    git_update("firedrake")
  File "/Users/master/firedrake/bin/firedrake-update", line 381, in git_update
    check_call(["git", "pull"])
  File "/Users/master/firedrake/bin/firedrake-update", line 228, in check_call
    subprocess.check_call(arguments, env=env)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'pull']' returned non-zero exit status 1


How can I resolve it?

Thanks in advance.

Angwenyi
--
Dr David Ham
Department of Mathematics
Imperial College London