Skip to content
Merged
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
2 changes: 1 addition & 1 deletion contribute
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ fi
if [ -z $6 ]; then
arg6="#"
fi
python3 contribute.py $1 $2 $3 $arg4 $arg5 $arg6
python3 contribute.py "$1" "$2" "$3" "$arg4" "$arg5" "$arg6"
2 changes: 1 addition & 1 deletion contribute.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ REM Check and set default values for the last three arguments if not provided
if "%~4"=="" (set arg4="#") else (set arg4=%~4)
if "%~5"=="" (set arg5="#") else (set arg5=%~5)
if "%~6"=="" (set arg6="#") else (set arg6=%~6)
python contribute.py %1 %2 %3 %arg4% %arg5% %arg6%
python contribute.py %1 %2 %3 "%arg4%" "%arg5%" "%arg6%"
goto :eof

:missing_arg
Expand Down
2 changes: 1 addition & 1 deletion contribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def anyOpenPR(upstream_repo):
def commitAndUpdateRef(repo,tree_content,commit,branch):
try:
new_tree = repo.create_git_tree(tree=tree_content,base_tree=commit.commit.tree)
new_commit = repo.create_git_commit("commit message",new_tree,[commit.commit])
new_commit = repo.create_git_commit("commit study",new_tree,[commit.commit])
if len(repo.compare(base=commit.commit.sha,head=new_commit.sha).files) == 0:
print("Your don't have any new changes.May be your example is already accepted.If this is not the case try with different fields.")
exit(0)
Expand Down