fix a bug while getting content using git (the solution is still not perfect)