Fixed logic errors in the GitSyncFork class.