Sublime Forum

Exec git remotely

#1

hi,

I use linux mint and the last dev version of sublime merge.

I tried to change the git_binary settings but it seems doesn’t work.
Like many people, I use sshfs and, unsurprisingly, git status is very slow.
I created a bash script that executes git commands remotely

like that

#!/bin/bash
ssh myserver.com "git $@"

in theory it works well.
If I look at the debugging information of sublime merge, I can see the git version of my server and the result of git statut from my server very fast.

So, why do I feel that the git status used to see the changes to commit in the interface is very slow and doesn’t use the git_binary path setting?

I hope you understand my problem, English is not my native language.

1 Like

#2

Merge uses the configured git to perform any action that modifies the state of the repository (like executing a commit, fetching, etc) but it uses its own internal Git library to obtain the state of the repository and visualize it to you, which is why that part is slow for you.

0 Likes

#3

Thanks, i understand now.
I think it’s not easy to find a solution.
Maybe create a “sublime merge agent” installed on the remote server and create a setting to communicate over ssh…
If you find a solution, your software will be the best and unique to do that :slight_smile: and a lot of people will be happy !

2 Likes