Fix patch for git repository