Skip to content

Allow WORK_DIR to be customized #17

Description

@milesj

I tried setting WORK_DIR manually at the top of my bash script but it seems to be overwritten here: https://github.com/dflydev/git-subsplit/blob/master/git-subsplit.sh#L50

Is there a way around this currently?

Activity

  1. simensen commented on Jun 1, 2015

    @simensen
    Member

    @milesj Not currently. If you want to experiment, you can add a line like this one:

    https://github.com/dflydev/git-subsplit/blob/master/git-subsplit.sh#L67

    --work-dir) WORK_DIR="$1"; shift ;;
    

    That should allow you to be able to specify --work-dir /whatever/you/want to the git subsplit command.

    If you add that, try it, test it out, and it works, I'd accept a PR to allow it. I'd do it myself but I don't have the time to do it right now.

    FWIW, the help docs look like this was intended functionality even though it doesn't appear to actually have been implemented:

    https://github.com/dflydev/git-subsplit/blob/master/git-subsplit.sh#L20

  2. milesj commented on Jun 1, 2015

    @milesj
    Author

    Cool, thanks for this, will give it a try.

  3. ryanwinchester commented on Feb 19, 2016

    @ryanwinchester

    +1 I need this on a project I'm working on where this runs from a queue.

    Will try line above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions