Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
9983fa5f
Commit
9983fa5f
authored
Jan 04, 2024
by
Daniel Hiltgen
Browse files
Cleaup stale submodule
If the tree has a stale submodule, make sure we clean it up first
parent
fac9060d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
llm/generate/gen_common.sh
llm/generate/gen_common.sh
+5
-0
No files found.
llm/generate/gen_common.sh
View file @
9983fa5f
...
...
@@ -18,6 +18,11 @@ git_module_setup() {
echo
"Skipping submodule initialization"
return
fi
# Make sure the tree is clean after the directory moves
if
[
-d
"
${
LLAMACPP_DIR
}
/gguf"
]
;
then
echo
"Cleaning up old submodule"
rm
-rf
${
LLAMACPP_DIR
}
fi
git submodule init
git submodule update
--force
${
LLAMACPP_DIR
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment