Skip to content

git add without -- branch does not add initialBranch master #5

Description

@steveriggins

or conversely, if initialBranch is missing, then git add of a module that does not have initialBranch in the dependencies tries to add --branch (null)

{
"dependencies" : [
{
"name" : "CocoaLumberjack",
"moduleURL" : "git@github.com:CocoaLumberjack/CocoaLumberjack.git"
}
],
"dependenciesPath" : "../",
"initialBranch" : "master",
"sourcePath" : "Shrubbery/THGLog.xcodeproj",
"name" : "Shrubbery"
}

will fail if someone tries to add this module to their project. However:

{
"dependencies" : [
{
"name" : "CocoaLumberjack",
"moduleURL" : "git@github.com:CocoaLumberjack/CocoaLumberjack.git"
"initialBranch" : "master",
}
],
"dependenciesPath" : "../",
"initialBranch" : "master",
"sourcePath" : "Shrubbery/THGLog.xcodeproj",
"name" : "Shrubbery"
}

works

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions