Publishing to Git - help needed FIXED

This forum is for all Flare issues related to using Source Control.
Post Reply
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Publishing to Git - help needed FIXED

Post by oceanclub »

EDIT: I found a fix for below. The URL has spaces in it, and you need to replace those with %20.


Hi all,

We have a request to publish our PDF guides to a particular directory in a Git repository so they can be packaged with the code. (Our source files are in Git as well)

I've set up a destination with the following attributes:
  • Type: Source Control
  • Directory: C:\Code\{project_name}\DOC - the DOC subdirectory of the code base which I've checked out. (This field cannot be empty and has to be local, which I assume means I must have the repository I wanted to publish to checked out locally?)
  • Provider Type: Git (detected using the Detect button)
  • Push to Remote: Turned on
  • Database: file:///C:/Code/{project_name}/.git (detected using the Detect button)
  • Remote Repository The alias for the URL of the repository: of the form https://dev.azure.com/{product_name}/{p ... oject_name}/
  • Database Root: file:///C:/Code/{project_name}/DOC (detected using the Detect button)
  • Credentials: My usual git credentials
When I publish, I end with the following error:

Code: Select all

fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
fatal: unable to access 'https://dev.azure.com/{product_name}/{project_name}/_git/{project_name}/': The requested URL returned error: 400
Publish failed: Object reference not set to an instance of an object. 
Any help appreciated,

Paul
Lsawyer
Jr. Propeller Head
Posts: 5
Joined: Tue May 05, 2015 9:12 am

Re: Publishing to Git - help needed FIXED

Post by Lsawyer »

I am about to try to do this and would appreciate any insights you may have.
Post Reply