Skip to content

Commit

Permalink
DEVPROD-5136: Only log commits in current directory for deploy (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad authored Mar 26, 2024
1 parent 7464244 commit c8332c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/parsley/scripts/deploy/email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ else
fi
echo "Getting commits between $BASE_COMMIT and $CURRENT_COMMIT_HASH"
# get all commits since the base commit
git log --no-merges "$BASE_COMMIT".."$CURRENT_COMMIT_HASH" --pretty="%h %s" > body.txt
git log --no-merges "$BASE_COMMIT".."$CURRENT_COMMIT_HASH" --pretty="%h %s" -- . > body.txt
fi


Expand Down
2 changes: 1 addition & 1 deletion apps/parsley/scripts/deploy/utils/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { execSync } from "child_process";
*/
const getCommitMessages = (currentlyDeployedCommit: string) => {
const commitMessages = execSync(
`git log ${currentlyDeployedCommit}..HEAD --oneline`,
`git log ${currentlyDeployedCommit}..HEAD --oneline -- .`,
{ encoding: "utf-8" }
).toString();
return commitMessages;
Expand Down
2 changes: 1 addition & 1 deletion apps/spruce/scripts/deploy/email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ else
fi
echo "Getting commits between $BASE_COMMIT and $CURRENT_COMMIT_HASH"
# get all commits since the base commit
git log --no-merges "$BASE_COMMIT".."$CURRENT_COMMIT_HASH" --pretty="%h %s" > body.txt
git log --no-merges "$BASE_COMMIT".."$CURRENT_COMMIT_HASH" --pretty="%h %s" -- . > body.txt
fi


Expand Down
2 changes: 1 addition & 1 deletion apps/spruce/scripts/deploy/utils/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { execSync } from "child_process";
*/
const getCommitMessages = (currentlyDeployedCommit: string) => {
const commitMessages = execSync(
`git log ${currentlyDeployedCommit}..HEAD --oneline`,
`git log ${currentlyDeployedCommit}..HEAD --oneline -- .`,
{ encoding: "utf-8" }
).toString();
return commitMessages;
Expand Down

0 comments on commit c8332c7

Please sign in to comment.