File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ git show "$known_good_commit" >/dev/null 2>&1 ||
27
27
die " $known_good_commit not found" \
28
28
" we need to be in a repo cloned from $repo_url "
29
29
30
+ cur_branch=$( git rev-parse --abbrev-ref HEAD)
31
+ test " $cur_branch " = " master" || die " please switch to the 'master' branch"
32
+
30
33
test -d " $src_dir " || die " no source '$src_dir ' directory"
31
34
32
35
test -d " $dst_dir " || die " no destination '$dst_dir ' directory"
@@ -55,11 +58,6 @@ next_month=$(LANG=C date "+%B %Y")
55
58
prev_month=$( LANG=C date --date=" $today - 1 month" " +%B %Y" )
56
59
57
60
58
- # If needed make sure we are up-to-date
59
-
60
- git checkout master
61
- git pull horigin master
62
-
63
61
# Publish current draft
64
62
65
63
git mv " $src_dir " /edition-$cur .md " $dst_dir " /$today -edition-$cur .markdown
You can’t perform that action at this time.
0 commit comments