Xcode 5 with JGit repository - xcode

How can I use Xcode with a JGit repository instead of a Git repository? The checkout dialog offers only the types “Git” and “Subversion”.
If I try to open a JGit repository as a traditional Git type, the error message says “fatal: Unable to find remote helper“.

Xcode doesn't directly support a repo stored on S3 (it's something unique to JGit).
That said, you should be able to access a repo there by using a combination of FUSE for OS X and s3fs. You will need to install FUSE (which allows the use of filesystems from userland) and then s3fs (to mount the S3 bucket) and then mount the bucket containing the repo somewhere on your local filesystem. Once that's done, you'll be able to reference it using the local filesystem mountpoint.

JGit is just a Jave interface to work with Git repositories, so there is no Jgit-Repository. Git repositories can be handled with Git or JGit, the resulting repository is identical.

Related

Pushing Laravel project to digitalocean

I created an Ubuntu droplet in digitalocean and installed Nginx, PHP and Mysql, I created bare git repository and connected to it remotely to push my local project, when I push my project it shows me that uploaded successfully but when I enter my server and access my project path the folder is empty.
I followed below guide link
https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/
Like you say: your repository is a bare repository, therefore you only see data being populated in the .git folder itself.
You need to clone that bare repository to the folder you want your Laravel app to be installed. This way, your bare repository remains the remote (origin) repository, and your clone is the local repository (even though they are in the same "remote" server).

If git repository is down then how to switch native property files automatically in spring cloud config server?

I need to set my spring boot cloud config server to read properties from git repository. But if git is down then it should read from local repository property files. Can anyone help on this please?
You can use spring.cloud.config.server.git.basedir = your/path/folder
Using this, if your app has been able to connect once to git, it will create
the specified directory and clone the files from git as fallback.
When your git repository will be unreachable the app config server will use those files.
Also there is this spring.cloud.config.server.git.clone-on-start = true/false.
If this is true when the application restarts the folder contents will be deleted and cloned again. You might want to set this to false if you want the files to be kept between restarts. Also if you want to have the fallback available before the first start, you just have to clone the git project locally, and put that path as the basedir.

Use git or hg repository tag as version in Azure Pipelines

I want to build a project in Azure Pipelines, but I want to know what the idiomatic way is to obtain the latest tag, latest tag distance, and repo remote path/URL in order to pass those values into the actual build script that is inside the repository.
Previously our build script would invoke hg log -r . --template with a clever template, but we found when moving to Continua CI build server that the build agent doesn't have access to the actual repository during a build, and had to find another way.
I'm assuming the same issue would crop up with Azure Pipelines and haven't quite found the relevant docs yet on artifact versioning.
Many thanks in advance.
For git at least, Azure Pipelines does a full clone of the repo by default, unless you explicitly denote that you're doing a shallow clone (source: https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops).
Deriving the version/tag can be done via normal git commands (i.e. git describe --tags or whatever you prefer), which can then be saved as VSO variables to be accessed in later steps in the same job (see https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#set-variables-using-expressions for more info on how to do that).

How can I use a gitian environment for building a local project?

I'm working on a project (a fork of bitcoin) that has initially been commited to github that uses the gitian build system. At this point I'd like to set up a local environment that allows me to change code and test changes without commiting them to a git repository.
Is there a way to configure gitian to work with local files that don't have a corresponding git repository, taking advantage of the deterministic build environment without the integrity checks?
If anyone else happens to be dealing with the same tools, the answer is very simple. You can specify a local git repository with filesystem path instead of a remote git URL in your .yml gitian descriptor file.
remotes:
- "url": "/home/user/project"
"dir": "project"
Then branch off your project and commit your changes with git.
When running gbuild, specify the branch/commit with --commit project=branchname.

Redmine Project Repository Location

I have redmine set up using bitnami on windows I created a project and added a repository by location successfully. Now I'm trying to clone this via redmine,
ex
git clone http://localhost/git/myproject
or
git clone http://localhost/redmine/git/myproject
The repository of the project is located in the htdocs\git\myproject folder, but when I try this it says repo not found. What is the link for redmine repos, or do I have to move the local repo elsewhere on the server to work?
I'm not sure about git, but for Mercurial you need to insert the local path of the repository. It looks like that also the case for git. So you'll need to set the repository to /htdocs/git/myproject

Resources