We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cc4936 + cc2a288 commit b681accCopy full SHA for b681acc
activity.sh
@@ -29,7 +29,7 @@ fi
29
##
30
for day in {1..365} ; do
31
# Get the past date of the commit
32
- day=$(date --date="-${day} day")
+ day2=$(date --date="-${day} day" "+%a, %d %b %Y %X %z")
33
34
echo "Creating commits for ${day}"
35
@@ -39,10 +39,10 @@ for day in {1..365} ; do
39
# Create the comits
40
echo "Creating ${commits} commits"
41
for ((i=1;i<=${commits};i++)); do
42
- content=$(date -d "$day" +"%s")
+ content=$(date -d "${day2}" +"%s")
43
echo ${content}-${i} >> .commits/changes
44
git commit -am "Commit number ${content}-${i}" > /dev/null 2>&1
45
- git commit --amend --no-edit --date "${day}" > /dev/null 2>&1
+ git commit --amend --no-edit --date "${day2}" > /dev/null 2>&1
46
done
47
48
0 commit comments