def GitCheckoutFile(self, name):
assert name
- self.Git(MakeArgs(["checkout --", name]))
+ self.Git(MakeArgs(["checkout -f --", name]))
@Strip
def GitCurrentBranch(self):
Git("checkout -b %s svn/trunk" % TEST_CONFIG[TRUNKBRANCH], "",
cb=ResetChangeLog),
Git("apply --index --reject \"%s\"" % TEST_CONFIG[PATCH_FILE], ""),
- Git("checkout -- %s" % TEST_CONFIG[CHANGELOG_FILE], "",
+ Git("checkout -f -- %s" % TEST_CONFIG[CHANGELOG_FILE], "",
cb=ResetChangeLog),
Git("add \"%s\"" % TEST_CONFIG[VERSION_FILE], ""),
Git("commit -aF \"%s\"" % TEST_CONFIG[COMMITMSG_FILE], "",