Skip to content

Commit

Permalink
help to download
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelachaux committed Oct 24, 2023
1 parent 3498c07 commit 8c6e932
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
1 change: 0 additions & 1 deletion Project/Sources/Classes/Git.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ Class constructor($folder : 4D:C1709.Folder)
If ($exe.exists)

This:C1470.command:=$exe.path+" "
This:C1470.command:="git "

Else

Expand Down
27 changes: 23 additions & 4 deletions Project/Sources/Classes/_GIT_Controller.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,25 @@ Function onLoad()
Form:C1466.commitSubject:=""
Form:C1466.commitDescription:=""

Case of
: (This:C1470.Git.success)

//all is OK

: (This:C1470.Git.error="Git not installed")

CONFIRM:C162(Get localized string:C991("gitNotInstalled"))

If (Bool:C1537(OK))

OPEN URL:C673("https://git-scm.com/download/win")

End if

CANCEL:C270

End case

This:C1470.form.goToPage("changes")
This:C1470.form.refresh()

Expand Down Expand Up @@ -1482,10 +1501,10 @@ Function CreateGithubRepository($token : Text)
//// Try creating the repository
//$GithubAPI.method:="POST"
//$GithubAPI.body:={\
accept: "application/vnd.github+json"; \
name: $GithubAPI.CommpliantRepositoryName(Form.project); \
private: True\
}
accept: "application/vnd.github+json"; \
name: $GithubAPI.CommpliantRepositoryName(Form.project); \
private: True\
}
//$request:=4D.HTTPRequest.new($GithubAPI.URL+"/user/repos"; $GithubAPI)
//$request.wait()
//If ($request.response.status#201)
Expand Down

0 comments on commit 8c6e932

Please sign in to comment.