Giter Site home page Giter Site logo

Request: Ability to run shell commands asynchronously. Also custom commands do not seem to work properly if the command does not start with "git <custom_args>". about gita HOT 6 OPEN

s7jones avatar s7jones commented on May 28, 2024
Request: Ability to run shell commands asynchronously. Also custom commands do not seem to work properly if the command does not start with "git ".

from gita.

Comments (6)

nosarthur avatar nosarthur commented on May 28, 2024

I tried this and it kinda works. The fetch actually fails but pwd is executed correctly

  "ffwd": {
    "cmd": "git fetch ; pwd",
    "allow_all": true,
    "help": "fast forward the git repos using custom script"
  }

from gita.

nosarthur avatar nosarthur commented on May 28, 2024

sorry it doesn't work, the repo path is printed out by default

from gita.

nosarthur avatar nosarthur commented on May 28, 2024

Maybe there is no workaround; we will need to copy the async logic to gita shell

from gita.

Ismailou avatar Ismailou commented on May 28, 2024

Hello,

I'm using gita since a while now and I find it very helpful in mutli repo projects.

to rejoin s7jones issue, I also tried the custom command fetchcrt in the readme.md but it didn't work also. However some simple command like "git status" works fine.

image

Is there any workaround please, I'm interested in running shell commands.
Also it will be intersecting if external commands can take arguments e.g. gita custom_cmd agr1 agr2

Regards,

from gita.

nosarthur avatar nosarthur commented on May 28, 2024

@Ismailou just curious, what kind of shell command do you want to run in each repo?

from gita.

Ismailou avatar Ismailou commented on May 28, 2024

what

I tried the command of fetchcrt example in the readme

	"fetchcrt":
	{
	  "cmd": "git rev-parse --abbrev-ref HEAD | xargs git fetch --prune upstream",
	  "allow_all": true,
	  "shell": true,
	  "help": "fetch current branch only"
	}

I tried it on Windows 10 machine in bash, powershell and git Bash the same result.

Regards,

from gita.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.