mirror of
https://git.envs.net/envs/burrow.git
synced 2024-06-16 14:17:09 +00:00
burrow should update git and global date on edit of existing content
This commit is contained in:
parent
b2237e440f
commit
b994822eac
28
burrow
28
burrow
|
@ -315,24 +315,24 @@ function make_post {
|
||||||
if ! $use_date; then
|
if ! $use_date; then
|
||||||
sort -fo "${post_dir}/gophermap" "${post_dir}/gophermap"
|
sort -fo "${post_dir}/gophermap" "${post_dir}/gophermap"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $update_root; then
|
||||||
|
update_gopher_date
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $config_git_commit != false ]]; then
|
||||||
|
pushd "$config_dir_gopher"
|
||||||
|
git add "${post_dir}/gophermap" "${post_file}" "$type_gophermap"
|
||||||
if $update_root; then
|
if $update_root; then
|
||||||
update_gopher_date
|
git add "${config_dir_gopher}/gophermap"
|
||||||
fi
|
fi
|
||||||
|
git commit -m "$type: $title"
|
||||||
if [[ $config_git_commit != false ]]; then
|
if [[ $config_git_push != false ]]; then
|
||||||
pushd "$config_dir_gopher"
|
git pull
|
||||||
git add "${post_dir}/gophermap" "${post_file}" "$type_gophermap"
|
git push
|
||||||
if $update_root; then
|
|
||||||
git add "${config_dir_gopher}/gophermap"
|
|
||||||
fi
|
|
||||||
git commit -m "$type: $title"
|
|
||||||
if [[ $config_git_push != false ]]; then
|
|
||||||
git pull
|
|
||||||
git push
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
fi
|
fi
|
||||||
|
popd
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user