home
/
projects
/
mirror-all
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82f3a11
)
get_file_contents: silence error on missing branch
master
v1.2.2
author
alex
<
[email protected]
>
Tue, 7 Jan 2025 07:31:22 +0000
(23:31 -0800)
committer
alex
<
[email protected]
>
Tue, 7 Jan 2025 07:31:46 +0000
(23:31 -0800)
mirror-all
patch
|
blob
|
history
diff --git
a/mirror-all
b/mirror-all
index edfa569b4e837780c3446ad26f86d4a4976ba62f..a7d08df157ac3f705f2c35f5f62e608c22fe61a1 100755
(executable)
--- a/
mirror-all
+++ b/
mirror-all
@@
-84,7
+84,7
@@
get_file_contents() {
local contents
local content_hash
- content_hash="$("$GIT" ls-tree --object-only "$BRANCH" -- "$1")"
+ content_hash="$("$GIT" ls-tree --object-only "$BRANCH" -- "$1"
2>/dev/null
)"
if [[ -z "$content_hash" ]]; then
echo ""