Git -C issue should be fixed. Replaced -C with --git-dir and --work-tree