Repository: CodeEditApp/CodeEdit
File: CodeEdit/Features/SourceControl/Clone/ViewModels/GitCloneViewModel.swift (Swift)

Code before:
        let pipe = Pipe()
        process.standardOutput = pipe
        do {
            try process.run()
            process.waitUntilExit()
            return process.terminationStatus == 0
        } catch {
            return false
        }
    }

    /// Check if clipboard contains git url
    func checkClipboard() {
        if let url = NSPasteboard.general.pasteboardItems?.first?.string(forType: .string) {
            if isValidUrl(url: url) {
                self.repoUrlStr = url
            }
        }
    }

    /// Clone repository
    func cloneRepository(completionHandler: @escaping (URL) -> Void) {
        if !isGitInstalled() {
            showAlert(
                alertMsg: "Git installation not found",
                infoText: "Ensure Git is installed on your system and try again"
            )
            return
        }
        if repoUrlStr == "" {
            showAlert(
                alertMsg: "Url cannot be empty",
                infoText: "You must specify a repository to clone"
            )
            return
        }

        // Parsing repo name
        guard let remoteUrl = URL(string: repoUrlStr) else {
            return
        }

        var repoName = remoteUrl.lastPathComponent

        // Strip .git from name if it has it.
        // Cloning repository without .git also works
        if repoName.contains(".git") {
            repoName.removeLast(4)
        }

        guard let localPath = getPath(saveName: repoName) else {

Review comment (suggestion):
```suggestion
                alertMsg: "Git installation not found.",
                infoText: "Ensure Git is installed on your system and try again."
```

Code after:
        let pipe = Pipe()
        process.standardOutput = pipe
        do {
            try process.run()
            process.waitUntilExit()
            return process.terminationStatus == 0
        } catch {
            return false
        }
    }

    /// Check if clipboard contains git url
    func checkClipboard() {
        if let url = NSPasteboard.general.pasteboardItems?.first?.string(forType: .string) {
            if isValidUrl(url: url) {
                self.repoUrlStr = url
            }
        }
    }

    /// Clone repository
    func cloneRepository(completionHandler: @escaping (URL) -> Void) {
        if !isGitInstalled() {
            showAlert(
                alertMsg: "Git installation not found.",
                infoText: "Ensure Git is installed on your system and try again."
            )
            return
        }
        if repoUrlStr == "" {
            showAlert(
                alertMsg: "Url cannot be empty",
                infoText: "You must specify a repository to clone"
            )
            return
        }

        // Parsing repo name
        guard let remoteUrl = URL(string: repoUrlStr) else {
            return
        }

        var repoName = remoteUrl.lastPathComponent

        // Strip .git from name if it has it.
        // Cloning repository without .git also works
        if repoName.contains(".git") {
            repoName.removeLast(4)
        }

        guard let localPath = getPath(saveName: repoName) else {