Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#243 from pohly/git-subtree-pull-fix
Browse files Browse the repository at this point in the history
pull-test.sh: avoid "git subtree pull" error
  • Loading branch information
k8s-ci-robot authored Nov 22, 2023
2 parents f9d5b9c + c465088 commit adfddcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pull-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CSI_RELEASE_TOOLS_DIR="$(pwd)"

# Update the other repo.
cd "$PULL_TEST_REPO_DIR"
git reset --hard # Shouldn't be necessary, but somehow is to avoid "fatal: working tree has modifications. Cannot add." (https://stackoverflow.com/questions/3623351/git-subtree-pull-says-that-the-working-tree-has-modifications-but-git-status-sa)
git subtree pull --squash --prefix=release-tools "$CSI_RELEASE_TOOLS_DIR" master
git log -n2

Expand Down

0 comments on commit adfddcc

Please sign in to comment.