GIT Submodules in VSTS online?

I have a VSTS project with a git repo. The repo has some submodules that are also required as part of the software projects development. Is there a way to create submodules inside the same VSTS project? The other option would be to split the develop...
more »

2017-12-03 13:12 (1) Answers

Adding files ignored by a git submodule

TL;DR: I want a submodule to ignore some files, but I want those files tracked by the parent project Details This is for a Unity project. I want to add a bunch of code and assets I frequently used into a submodule, so I can easily share it betwee...
more »

2017-12-02 02:12 (2) Answers

Modular Java Application on GIT repository

I'm working on a "modular Java application", it has around 60 independent modules, all obviously "buildable" on their own. I'm trying to understand what can be the best approach to structure this type of application under GIT. I'll explain better m...
more »

2017-11-16 10:11 (2) Answers

Setting up a Submodule with the files in PWD?

I'm trying to add a submodule to an existing project. I followed the instructions at How to set up a git project to use an external repo submodule?, but the directory structure is wrong. I am aiming for a "it just works" so users are not hassled. Th...
more »

2017-11-01 16:11 (0) Answers

Detecting current directory in bash script

I am attempting to write a script that initializes my git hooks differently whether my git repo is a submodule or just a regular repository. It currently looks like this: # Get to root directory of client repository if [[ ":$PATH:" != *":.git/module...
more »

2017-06-30 23:06 (2) Answers

Fork repo for a single folder

Original problem: I am interested in forking and contributing to a public repository. Problem is, I wish to only update and retrieves updates for a single subdirectory in the public repository. First attempt: Fork the public repository Clone the ...
more »

2017-06-23 13:06 (1) Answers

is it possible to let git-svn ignore submodules?

git-svn seems to not support submodules as some questions/answers like this one show. My intention now is not to let git-svn handle submodules (e.g. by treating them as externals) but to just not crash. Is there a way today which lets me add submod...
more »

2017-06-21 10:06 (0) Answers

Git Submodule not reachable

I have a git repository that has a submodule. This git repository is mirrored in a separate environment as well. However, the submodule git repository is not mirrored. The two environments can't talk to each other. For the purpose of explaining the p...
more »

2017-06-18 11:06 (2) Answers

What is the point of 'git submodule init'?

Background To populate a repository's submodules, one typically invokes: git submodule init git submodule update In this usage, git submodule init seems to do only one thing: populate .git/config with information that is already in .gitmodules. ...
more »

2017-06-05 12:06 (1) Answers

Git Hook Fails Silently

I have a post-checkout and post-merge githook with these contents: #!/bin/bash # MIT © Sindre Sorhus - set -eux changed_files="$(git diff-tree -r --name-only --no-commit-id HEAD@{1} HEAD)" check_run() { echo "$changed_files...
more »

2017-05-09 22:05 (1) Answers

Use some files as a git submodule

Is it possible to make a git submodule that contains only a few files from the working tree of the main project I'm working on? Say my current directory structure looks like: .git FolderA FileAA FileAB FolderB FileBA FileBB I want...
more »

2017-05-05 17:05 (0) Answers

Git manage submodule on branch?

I have a submodule on a development branch that isn't present on other branches. Everytime I switch branches I get a message like this: warning: unable to rmdir master/images/development/fakeapi: Directory not empty When I look in the directory th...
more »

2017-04-28 22:04 (1) Answers

Cloud build failing on git submodules

I have a Unity project in a git repo hosted on VSTS with submodules, I've integrated it the git repo with Unity cloud build. When Cloud Build tires to do a build it seems to go fine checking everything out until it reaches the modules, it hangs on t...
more »

2017-04-16 15:04 (1) Answers

'git submodule add' without cloning it

How could I add a local submodule to a projet without actually cloning all the files it contain? I want to avoid duplicating my project's files locally. I know this kind of thing can be achieved because when you clone a projet that include submodule...
more »

2017-03-03 17:03 (0) Answers

Set up git submodule without creating commit

I have a parent project with the following .gitmodules file [submodule "src/redux"] path = src/redux url = branch = master Here are the steps I'm using to clone the parent project to ensure I hav...
more »

2017-02-16 18:02 (1) Answers

Pull git submodule post receive

I currently update a website by pushing the git repository to a remote. The remote then has a post-receive hook which does GIT_WORK_TREE=/var/www/html/ git checkout -f I recently added a submodule in my repository from a different project. I would...
more »

2017-01-22 00:01 (1) Answers