title: git hook bash does not work
body: <p>working hard on configuration of my git repository, but stil no success.</p>
  
  <p>Goal: as soon i make a push on my lokal repo, to the dev branch, it will merged with master brench.</p>
  
  <p>post-update (hook)</p>
  
  <blockquote>
  <pre><code>#!/bin/bash
  #
  # An example hook script to prepare a packed repository for use over
  # dumb transports.
  #
  # To enable this hook, rename this file to "post-update".
  
  LOGFILE=/www/htdocs/w00dac5d/_production/.git_push_log.tmp
  
  &amp;&gt; $LOGFILE
  
  echo 'push-start'
  
  echo `basename $PWD`
  #cd ../
  #echo `basename $PWD`
  
  git status
  git checkout master
  
  echo 'push-checkout'
  git merge dev
  
  exec git-update-server-info
  </code></pre>
  </blockquote>
  
  <p>getting errors like</p>
  
  <p>"its not a git repo" but i check teh folder an it is the right one.</p>
  
  <p><img src="https://i.stack.imgur.com/093VI.png" alt="enter image description here"></p>