diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 2a039c0..e539335 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -15,15 +15,4 @@ if [[ "$BRANCH" =~ ^(master|main|develop)$ ]]; then echo "You are on branch $BRANCH. Are you sure you want to commit to this branch?" echo "If so, commit with -n to bypass the pre-commit hook." exit 1 -fi - -## Avoid large commits -# https://www.backblaze.com/blog/how-many-bytes-are-in-a-megabyte-really/ -size_limit=$((2 * 2**20)) # 2mbs -# https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---disk-usage -commit_size=$(git rev-list --disk-usage HEAD^..HEAD) -test "$commit_size" -lt "$size_limit" || ( - echo "Commit size is too large: $commit_size > $size_limit" - echo "Force commit using --no-verify" - exit 1 -) +fi \ No newline at end of file diff --git a/all.sas b/all.sas index 3838e5e..9c7d691 100644 --- a/all.sas +++ b/all.sas @@ -1121,7 +1121,7 @@ or %index(&pgm,/tests/testteardown) @author Allan Bowe **/ -%macro mf_getuniquelibref(prefix=mclib,maxtries=1000); +%macro mf_getuniquelibref(prefix=mc,maxtries=1000); %local x; %if ( %length(&prefix) gt 7 ) %then %do; @@ -24519,6 +24519,13 @@ run; %put &sysmacroname: &name created at %mfv_getpathuri(&path/&name);%put; %put &base_uri/SASJobExecution?_file=&path/&name;%put; +%if &mdebug=0 %then %do; + /* clear refs */ + filename &fname1 clear; + filename &fref clear; + libname &libref2 clear; +%end; + %mend mv_createfile;/** @file mv_createfolder.sas @brief Creates a viya folder if that folder does not already exist diff --git a/base/mf_getuniquelibref.sas b/base/mf_getuniquelibref.sas index b5999d5..fe035c7 100644 --- a/base/mf_getuniquelibref.sas +++ b/base/mf_getuniquelibref.sas @@ -26,7 +26,7 @@ @author Allan Bowe **/ -%macro mf_getuniquelibref(prefix=mclib,maxtries=1000); +%macro mf_getuniquelibref(prefix=mc,maxtries=1000); %local x; %if ( %length(&prefix) gt 7 ) %then %do; diff --git a/viya/mv_createfile.sas b/viya/mv_createfile.sas index 2f7d675..2abff7b 100644 --- a/viya/mv_createfile.sas +++ b/viya/mv_createfile.sas @@ -244,4 +244,11 @@ run; %put &sysmacroname: &name created at %mfv_getpathuri(&path/&name);%put; %put &base_uri/SASJobExecution?_file=&path/&name;%put; +%if &mdebug=0 %then %do; + /* clear refs */ + filename &fname1 clear; + filename &fref clear; + libname &libref2 clear; +%end; + %mend mv_createfile; \ No newline at end of file