ticgit icon indicating copy to clipboard operation
ticgit copied to clipboard

ti sync should only fetch if there is no 'ticgit' branch in $repo

Open jeffWelling opened this issue 13 years ago • 9 comments

Currently, ti sync is painfully slow because it attempts a git fetch $repo before performing the git pull and git push. The fetch should only be performed if there is no 'ticgit' or 'ticgit-ng' branch in $repo as we currently have it. This will prevent superfluous slowdowns but will still perform the fetch if we aren't aware of a branch we can use yet.

jeffWelling avatar Mar 03 '11 03:03 jeffWelling

Fubar?

jeffWelling avatar Mar 21 '11 12:03 jeffWelling

If this change is made, perhaps TicGit should also print a small warning such as: "Make sure to use git fetch to keep your remotes up to date. See X for more info."

jeffWelling avatar Apr 09 '11 22:04 jeffWelling

Not sure if this should be a new issue or part of this, but ti sync dies with a stack trace if you haven't pushed ticgit yet.

frioux avatar Jul 12 '11 14:07 frioux

Are you trying master or deving? This sounds like a new issue, can you file it with as much info as you can provide? Also, it looks like the last gem was pushed with debug lines included, I'll remove those and push a new version. Thanks!

jeffWelling avatar Jul 13 '11 03:07 jeffWelling

I just tried running the specs and they all pass, but it's possible this is a problem without a spec.

jeffWelling avatar Jul 13 '11 03:07 jeffWelling

I think I understand what you mean now; When you haven't pushed a ticgit/ticgit-ng branch to origin before then when you run sync, TicGit explodes violently.

I've started a new issue for this at https://github.com/jeffWelling/ticgit/issues/32 and will begin investigating.

jeffWelling avatar Jul 13 '11 08:07 jeffWelling

That's right, glad you got it :-)

On Wed, Jul 13, 2011 at 3:54 AM, jeffWelling [email protected] wrote:

I think I understand what you mean now; When you haven't pushed a ticgit/ticgit-ng branch to origin before then when you run sync, TicGit explodes violently.  I've started a new issue for this at https://github.com/jeffWelling/ticgit/issues/32 and will begin investigating.

Reply to this email directly or view it on GitHub: https://github.com/jeffWelling/ticgit/issues/11#issuecomment-1561130

fREW Schmidt http://blog.afoolishmanifesto.com

frioux avatar Jul 13 '11 13:07 frioux

issue 32 is resolved in 1.0.2.9 :)

jeffWelling avatar Jul 14 '11 15:07 jeffWelling

Great! And fyi I'm just using it straight out of the repo

On Thu, Jul 14, 2011 at 10:03 AM, jeffWelling < [email protected]>wrote:

issue 32 is resolved in 1.0.2.9 :)

Reply to this email directly or view it on GitHub: https://github.com/jeffWelling/ticgit/issues/11#issuecomment-1572193

fREW Schmidt http://blog.afoolishmanifesto.com

frioux avatar Jul 14 '11 15:07 frioux