make sure that git does not ask for creating ref and hang