Skip to content

Commit

Permalink
reset the commit history of gh-pages
Browse files Browse the repository at this point in the history
Resolves gap-system#46
  • Loading branch information
mohamed-barakat committed Oct 22, 2020
1 parent 3581444 commit eae8139
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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

0 comments on commit eae8139

Please sign in to comment.