Publishing to Git - help needed FIXED

This forum is for all Flare issues related to using Source Control.

Publishing to Git - help needed FIXED

Postby oceanclub on Wed Oct 23, 2019 9:04 am

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}/{project_name}/_git/{project_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
User avatar
oceanclub
Sr. Propeller Head
 
Posts: 223
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Return to Source Control

Who is online

Users browsing this forum: No registered users and 4 guests