Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squelch warning #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
6 changes: 6 additions & 0 deletions js/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ var v = new Vue({

// Generate the whole script
var script = 'git filter-branch ';

// Squelch warning on newer git version.
// Git hold us for seconds to suggest us to:
// "use an alternative filtering tool such as 'git filter-repo' (https://github.com/newren/git-filter-repo/) instead
script = 'FILTER_BRANCH_SQUELCH_WARNING=1 ' + script;

if (result.env.length + result.bulk.length > 0) {
script += '--env-filter \\' + br
+ "'" + result.bulk + (result.bulk.length > 0 && result.env.length > 0 ? 'fi; ' : '')
Expand Down