Skip to content

Commit b539553

Browse files
committed
Ignore package-lock.json when running git diff-index
1 parent fca60ef commit b539553

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/pull

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
git fetch &&
4-
! git diff-index --quiet origin/master &&
4+
! git diff-index --quiet origin/master -- ':!package-lock.json' &&
55
git reset --hard origin/master &&
66
npm install &&
77
npm run build

src/backend/controllers/tracers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const trace = lang => (req, res, next) => {
2828

2929
const buildRelease = release => (
3030
fs.pathExistsSync(repoPath) ?
31-
execute(`git fetch && ! git diff-index --quiet ${release.target_commitish}`, repoPath) :
31+
execute(`git fetch && ! git diff-index --quiet ${release.target_commitish} -- ':!package-lock.json'`, repoPath) :
3232
execute(`git clone https://github.com/algorithm-visualizer/tracers.git ${repoPath}`, __dirname)
3333
).then(() => execute(`git reset --hard ${release.target_commitish} && npm install && npm run build && ./bin/build`, repoPath));
3434

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy