Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset the commit history of gh-pages #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SetPackageInfo( rec(

PackageName := "PackageMaker",
Subtitle := "A GAP package for creating new GAP packages",
Version := "0.9.3",
Date := "03/12/2019", # dd/mm/yyyy format
Version := "0.9.4",
Date := "22/10/2020", # dd/mm/yyyy format
License := "GPL-2.0-or-later",

Persons := [
Expand Down
8 changes: 8 additions & 0 deletions gap/PackageMaker.gi
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ BindGlobal( "CreateGitRepository", function(dir, github)
Error(dir, " is not a directory");
fi;

# reset the history of gh-pages
RunGit(["reset", "6c61c16db79418c6b250f4c6dc84ad70f0a7b60f"],
"Failed to reset gh-pages branch to initial commit" );
RunGit(["add", "-A"],
"Failed to add back working tree to the gh-pages index" );
RunGit(["commit", "--amend", "--author=\"Bot <empty>\"", "--no-edit"],
"Failed to amend the initial commit" );

# We use the shell for the next commands to get glob expansion
shell := Filename(DirectoriesSystemPrograms(), "sh");

Expand Down