Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
save
  • Loading branch information
Nikhil Thorat committed Sep 6, 2019
commit 5ec46d151420da6512b5e32f12d38c33703971af
3 changes: 3 additions & 0 deletions scripts/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ console.log('~~~~~~~~~~~~~~~~~~~~~~');
console.log('commitSha: ', commitSha);
console.log('branchName: ', branchName);

// We cannot do --depth=1 or --single-branch here because we need multiple
// branches at older commits.
exec(`git clone https://github.com/tensorflow/tfjs ${CLONE_CURRENT_PATH}`);

// Get the merge base from the current commit and master.
Expand All @@ -58,6 +60,7 @@ shell.cd('..');
console.log('mergeBase: ', mergeBase);
console.log('~~~~~~~~~~~~~~~~~~~~~~');

// We cannot do --depth=1 here because we need to check out an old merge base.
exec(
`git clone --single-branch ` +
`https://github.com/tensorflow/tfjs ${CLONE_MASTER_PATH}`);
Expand Down